Widget:Webm

From Grand Theft Wiki
Revision as of 20:21, 13 September 2013 by Gboyers (Talk | contribs)

Jump to: navigation, search

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>