Widget:Video: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<!-- Check if the widget is being used for YouTube --> | <!-- Check if the widget is being used for YouTube --> | ||
{{#ifeq:{{{type|}}}|youtube| | {{#ifeq:{{{type|}}}|youtube| | ||
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{{youtube|}}}" frameborder="0" allowfullscreen></iframe> | <iframe width="560" height="315" src="https://www.youtube.com/embed/{{{youtube|}}}" frameborder="0" allowfullscreen></iframe> | ||
<!-- Default video handling --> | <!-- Default video handling --> | ||
{{#if:{{{webm|}}}| | {{#if:{{{webm|}}}| | ||
<video style="<!--{$style}-->" controls> | <video style="<!--{$style}-->" controls> | ||
{{#if:{{{webm|}}}| | |||
<source src="<!--{$webm|validate:url}-->" type="video/webm" /> | |||
}} | |||
{{#if:{{{ogg|}}}| | |||
<source src="<!--{$ogg|validate:url}-->" type="video/ogg" /> | |||
}} | |||
{{#if:{{{mp4|}}}| | |||
<source src="<!--{$mp4|validate:url}-->" type="video/mp4" /> | |||
</video> | }} | ||
No support for the video tag, try using a more recent browser that supports HTML5 video. | |||
</video> | |||
}} | }} | ||
</includeonly> | </includeonly> |