Difference between revisions of "Embedding Audio and Video"
From SCI Wiki
Jump to navigationJump to search (→OGG) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Embedding Audio== | ==Embedding Audio== | ||
− | '''OGG'''< | + | === <br /> '''OGG''' === |
− | + | ||
+ | The following will embed an OGG file: | ||
+ | |||
+ | <div align="center"><code><nowiki>[[File:KQ4MT32DwarvesMine.ogg]]</nowiki></code></div> | ||
+ | |||
+ | The File attribute will accept extra parameters like "center" to place the player in the center of the page. | ||
+ | |||
+ | <div align="center"><code><nowiki>[[File:KQ4MT32DwarvesMine.ogg|center]]</nowiki></code></div> | ||
+ | <br /> | ||
[[File:KQ4_Dwarves_Mine.ogg|center]] | [[File:KQ4_Dwarves_Mine.ogg|center]] | ||
+ | <!-- [[File:KQ4MT32DwarvesMine.ogg|center]] --> | ||
<div align="center">KQ4 Dwarve's Mine</div> | <div align="center">KQ4 Dwarve's Mine</div> | ||
Line 32: | Line 41: | ||
<!-- "http://sierrahelp.com/Assets/Movies/Camelot.flv" --> | <!-- "http://sierrahelp.com/Assets/Movies/Camelot.flv" --> | ||
− | === | + | ===<br /> YouTube === |
− | + | <div align="center"><code><nowiki>{{#evt: service=youtube|id=https://www.youtube.com/watch?v=DXnp5KSK9JM}}</nowiki></code></div> | |
− | |||
− | + | will yield: | |
− | |||
− | |||
− | + | <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> | ||
− | |||
− | == | + | and |
+ | <div align="center"><code><nowiki><youtube>https://www.youtube.com/watch?v=8a6OP9JWNxk</youtube></nowiki></code></div> | ||
− | + | will yield: | |
− | |||
− | |||
− | < | + | <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]] | |
[[Category:Wiki Help]] | [[Category:Wiki Help]] |
Latest revision as of 22:01, 16 March 2019
Embedding Audio
OGG
The following will embed an OGG file:
[[File:KQ4MT32DwarvesMine.ogg]]
The File attribute will accept extra parameters like "center" to place the player in the center of the page.
[[File:KQ4MT32DwarvesMine.ogg|center]]
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]]
YouTube
{{#evt: service=youtube|id=https://www.youtube.com/watch?v=DXnp5KSK9JM}}
will yield:
{{#evt: service=youtube|id=https://www.youtube.com/watch?v=DXnp5KSK9JM%7Calignment=center}}
The Colonel's Bequest out side of mansion
and
<youtube>https://www.youtube.com/watch?v=8a6OP9JWNxk</youtube>
will yield:
<youtube>https://www.youtube.com/watch?v=8a6OP9JWNxk</youtube>
Space Quest II "Where am I?"