Difference between revisions of "Widget:Html5media"

From SEBoK
Jump to: navigation, search
Line 8: Line 8:
 
* poster - poster image
 
* poster - poster image
  
</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><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}-->"></video></includeonly>

Revision as of 15:32, 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