Widget:Webm: Difference between revisions

(New Page: "<noinclude>Embed a html5 video url. Parameters are: *Source (full URL) * Type (mp4/webm/ogg). *Height and Width (end with px) *ID (integer 123 will become #VidID123) Created by Us...")
 
No edit summary
Line 16: Line 16:
   <!--poster="http://video-js.zencoder.com/oceans-clip.png"-->
   <!--poster="http://video-js.zencoder.com/oceans-clip.png"-->
   data-setup='{ "controls": true, "autoplay": false, "preload": "auto" }'>
   data-setup='{ "controls": true, "autoplay": false, "preload": "auto" }'>
  <source src="<!--{$source|validate:url'}-->" type='video/<!--{$type|escape:'htmlall'}-->' />
  <source src="<!--{$source|validate:'url'}-->" type='video/<!--{$type|escape:'htmlall'}-->' />
</video>
</video>

Revision as of 20:21, 13 September 2013

Embed a html5 video url. Parameters are:

  • Source (full URL)
  • Type (mp4/webm/ogg).
  • Height and Width (end with px)
  • ID (integer 123 will become #VidID123)

Created by User:Gboyers


<link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet"> <script src="http://vjs.zencdn.net/4.1/video.js"></script>

<video id="VidID" class="video-js vjs-default-skin"

 controls preload="auto" width="" height=""
 data-setup='{ "controls": true, "autoplay": false, "preload": "auto" }'>
<source src="" type='video/' />

</video>