Difference between revisions of "Reference:EmbedVideo"
The EmbedVideo extension adds a parser function called #ev
for embedding video clips from over 24 popular video sharing services in multiple languages and countries. It also adds video and audio media handlers to support transforming standard File:Example.mp4 file links into embedded HTML5 <video> and <audio> [<a tags.</audio></video>
Usage[<a href="<a class="external bs-external-link bs-protocol-none" title="href=%22https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2%22%20title=%22Edit%20section:%20Usage%22>edit" href="%3Ca" data-bs-type="external_link" data-bs-wikitext="<a%20href=%22https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2%22%20title=%22Edit%20section:%20Usage%22>edit">href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2" title="Edit section: Usage">edit][edit | edit source]
Media Handler[<a href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=3" title="Edit section: Media Handler">edit][edit | edit source]
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.</video>
[[File:Example.mp4]]
Source: 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]]
The '''EmbedVideo''' extension adds a parser function called <code>#ev</code> for embedding video clips from over 24 popular video sharing services in multiple languages and countries. It also adds video and audio media handlers to support transforming standard [[File:Example.mp4]] file links into embedded HTML5 <video> and <audio> [<a tags. </audio></video> ==<span id="Usage" class="mw-headline">Usage</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="httpsclass="external bs-external-link bs-protocol-none" title="href=%22https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2" title="Edit section: Usage"2%22%20title=%22Edit%20section:%20Usage%22>edit" href="%3Ca" data-bs-type="external_link" data-bs-wikitext="<a%20href=%22https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2%22%20title=%22Edit%20section:%20Usage%22>edit">href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2" title="Edit section: Usage">edit]</span></span>== ===<span id="Media_Handler" class="mw-headline">Media Handler</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=3" title="Edit section: Media Handler">edit]</span></span>=== For locally uploaded content the process for displaying it on a page is the same as an image. [https://www.mediawiki.org/wiki/Help:Images#Syntax 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.</video> <pre>[[File:Example.mp4]] </pre> '''Source:''' 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. <pre>[[File:Example.mp4|start=2|end=6]]</pre>
Line 1: | Line 1: | ||
− | The '''EmbedVideo''' extension adds a parser function called <code>#ev</code> for embedding video clips from over 24 popular video sharing services in multiple languages and countries. It also adds video and audio media handlers to support transforming standard [[File:Example.mp4]] file links into embedded HTML5 <video> and <audio> | + | The '''EmbedVideo''' extension adds a parser function called <code>#ev</code> for embedding video clips from over 24 popular video sharing services in multiple languages and countries. It also adds video and audio media handlers to support transforming standard [[File:Example.mp4]] file links into embedded HTML5 <video> and [<a tags.</audio></video> |
− | ==<span id="Usage" class="mw-headline">Usage</span><span class="mw-editsection"><span class="mw-editsection-bracket"> | + | |
+ | ==<span id="Usage" class="mw-headline">Usage</span><span class="mw-editsection"><span class="mw-editsection-bracket"><a class="external bs-external-link bs-protocol-none" title="href=%22https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2%22%20title=%22Edit%20section:%20Usage%22>edit" href="%3Ca" data-bs-type="external_link" data-bs-wikitext="<a%20href=%22https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2%22%20title=%22Edit%20section:%20Usage%22>edit">href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=2" title="Edit section: Usage">edit]</span></span>== | ||
===<span id="Media_Handler" class="mw-headline">Media Handler</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=3" title="Edit section: Media Handler">edit]</span></span>=== | ===<span id="Media_Handler" class="mw-headline">Media Handler</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:EmbedVideo&action=edit§ion=3" title="Edit section: Media Handler">edit]</span></span>=== | ||
For locally uploaded content the process for displaying it on a page is the same as an image. [https://www.mediawiki.org/wiki/Help:Images#Syntax See the image syntax documentation] on MediaWiki.org for complete reference on this feature. | For locally uploaded content the process for displaying it on a page is the same as an image. [https://www.mediawiki.org/wiki/Help:Images#Syntax 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. | + | This example would display a video in page using a HTML5 `<video>` tag.</video> |
<pre>[[File:Example.mp4]] | <pre>[[File:Example.mp4]] | ||
</pre> | </pre> | ||
+ | |||
+ | '''Source:''' | ||
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. | 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. | ||
<pre>[[File:Example.mp4|start=2|end=6]]</pre> | <pre>[[File:Example.mp4|start=2|end=6]]</pre> |