Difference between revisions of "Embedding Audio and Video"

From SCI Wiki
Jump to navigationJump to search
Line 32: Line 32:
 
<!-- "http://sierrahelp.com/Assets/Movies/Camelot.flv" -->
 
<!-- "http://sierrahelp.com/Assets/Movies/Camelot.flv" -->
  
===OGV===
+
===<br /> YouTube ===
  
Theora (OGV and OGG) is a [http://www.xiph.org/ Xiph.Org's] (Vorbis audio format and the OGG container) free lossy video compression format, distributed without licensing fees. Videos can be encoded to Theora with the free [http://www.minicoder.minitech.org/download.html MiniCoder batch encoder]. The following code can be used to embed an OGV video. It uses the same code as images. The "thumbtime=" specifies what video frame to use for the thumbnail image.
+
<div align="center"><code><nowiki>{{#evt: service=youtube|id=https://www.youtube.com/watch?v=DXnp5KSK9JM}}</nowiki></code></div>
<pre>[[File:SeasonedPro.ogv|thumb|thumbtime=0:02|320px|center|<div align="center">1990 Christmas Card - The Seasoned Pro (256 colors)</div>]]</pre><br />
 
  
<div align="center"><div style="border-bottom:1px solid #fad67d; padding:0.4em 1em 0.3em; width:640px">
+
will yield:
[[File:SeasonedPro.ogv|thumb|thumbtime=1:00|640px|center|<div align="center">1990 Christmas Card - The Seasoned Pro (256 colors)</div>]]<br />
 
{{motd|width=640|float=center}}</div></div>
 
  
&nbsp;
+
<div align="center">{{#evt: service=youtube|id=https://www.youtube.com/watch?v=DXnp5KSK9JM|alignment=center}}</div>
 +
<div align="center">''[[The Colonel's Bequest]]'' out side of mansion</div>
  
<!-- |left -->
 
  
===Flash===
+
and
 +
<div align="center"><code><nowiki><youtube>https://www.youtube.com/watch?v=8a6OP9JWNxk</youtube></nowiki></code></div>
  
The following code can be used to embed a Flash video.
+
will yield:
<pre><oflash file="http://sierrahelp.com/Assets/Movies/Camelot.flv" width="640" height="480" /></pre>will give:
 
<div align="center">
 
  
<oflash file="http://sierrahelp.com/Assets/Movies/Camelot.flv" width="640" height="480" />
+
<div align="center"><youtube>https://www.youtube.com/watch?v=8a6OP9JWNxk</youtube></div>
 +
<div align="center">''[[Space Quest II]]'' "Where am I?"</div>
  
</div>  
+
==<br /> Also See ==
  
<!--
+
* [[Help:Contents|MediaWiki Formatting]]
<flv title="Camelot">
 
"http://sierrahelp.com/Assets/Movies/Camelot.flv"
 
</flv>
 
 
 
caption="Conquests of Camelot Introduction" thumb="true"  -->
 
 
 
&nbsp;
 
  
 
[[Category:Wiki Help]]
 
[[Category:Wiki Help]]

Revision as of 21:57, 16 March 2019

Embedding Audio

OGG
To be done.

File:KQ4 Dwarves Mine.ogg

KQ4 Dwarve's Mine

Embedding Video


mp4

For locally uploaded content the process for displaying it on a page is the same as an image. See the image syntax documentation on MediaWiki.org for complete reference on this feature.

This example would display a video in page using a HTML5 <video> tag.

[[File:Example.mp4]]

To specify the start and end timestamps in the media use the start and end parameters. The timestamp can be formatted as one of: ss, :ss, mm:ss, hh:mm:ss, or dd:hh:mm:ss.

[[File:Example.mp4|start=2|end=6]]

File:SeasonedPro.mp4


YouTube

{{#evt: service=youtube|id=https://www.youtube.com/watch?v=DXnp5KSK9JM}}

will yield:

The Colonel's Bequest out side of mansion


and

<youtube>https://www.youtube.com/watch?v=8a6OP9JWNxk</youtube>

will yield:

Space Quest II "Where am I?"


Also See