Widget:Video: Difference between revisions

From Knowledge-land-scape
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
</noinclude><includeonly>
</noinclude><includeonly><video style="<!--{$style}-->" controls>No support for the video tag, try using a more recent browser that suports HTML5 video.<!--{if $webm}--><source src="<!--{$webm|validate:url}-->" type="video/webm" /><!--{/if}--><!--{if $ogg}--><source src="<!--{$ogg|validate:url}-->" type="video/ogg" /><!--{/if}--><!--{if $mp4}--><source src="<!--{$mp4|validate:url}-->" type="video/mp4" /><!--{/if}--></video></includeonly>
<!-- Check if the widget is being used for YouTube -->
{{#ifeq:{{{type|}}}|youtube|
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{{youtube|}}}" frameborder="0" allowfullscreen></iframe>
<!-- Default video handling -->
{{#if:{{{webm|}}}|
<video style="<!--{$style}-->" controls>
    <source src="<!--{$webm|validate:url}-->" type="video/webm" />
    <!--{if $ogg}-->
    <source src="<!--{$ogg|validate:url}-->" type="video/ogg" />
    <!--{/if}-->
    <!--{if $mp4}-->
    <source src="<!--{$mp4|validate:url}-->" type="video/mp4" />
    <!--{/if}-->
    No support for the video tag, try using a more recent browser that supports HTML5 video.
</video>
}}
</includeonly>

Latest revision as of 14:17, 16 September 2024