Difference between revisions of "Widget:Html5media"
Jump to navigation
Jump to search
WikiWorks753 (talk | contribs) |
WikiWorks753 (talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <noinclude> |
The widget embeds a video file, takes the following params: | The widget embeds a video file, takes the following params: | ||
Line 8: | Line 8: | ||
* poster - poster image | * poster - poster image | ||
− | <includeonly><script src="https//api.html5media.info/1.2.2/html5media.min.js"></script><video src="<!--{$url|validate:url}-->" width="<!--{$width|default:425|validate:int|escape:'html'}-->" height="<!--{$height|default:355|validate:int|escape:'html'}-->" | + | </noinclude><includeonly><!-- We already have EmbedVideo <script src="https://api.html5media.info/1.2.2/html5media.min.js"></script>--><video src="<!--{$url|validate:url}-->" width="<!--{$width|default:425|validate:int|escape:'html'}-->" height="<!--{$height|default:355|validate:int|escape:'html'}-->" |
− | controls poster="<!--{$poster}-->"></video></includeonly> | + | controls poster="<!--{$poster|validate:url|escape:'html'}-->"></video></includeonly> |
Latest revision as of 16:40, 13 May 2020
The widget embeds a video file, takes the following params:
- url - full url to the video file
- height - video height
- width - vide width
- poster - poster image