Difference between revisions of "Widget:Html5media"

From SEBoK
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
</noinclude><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>
controls poster="<!--{$poster}-->"></video></includeonly>
+
 
 +
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
 +
 
 +
</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|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