
Video.js - Make your player yours | Video.js
Make your player yours with the world's most popular open source HTML5 player framework
Class: Player - Video.js
An instance of the Player class is created when any of the Video.js setup methods are used to initialize a video. After an instance has been created it can be accessed globally in three ways:
Video.js API docs
Video.js is a free and open source HTML5 video player. © Brightcove, Inc. View license
Player - Video.js
Use this method if you are sure the current playback technology (HTML5/Flash) can support the source you provide. Currently only MP4 files can be used in both HTML5 and Flash.
Source: tech/html5.js
* Boolean indicating whether the `HTML5` tech currently supports the timeupdate event. * If this is false, manual `timeupdate` events will be triggered instead.
Videojs Setup
With Video.js you just use an HTML5 video tag to embed a video. Video.js will then read the tag and make it work in all browsers, not just ones that support HTML5 video.
Class: Html5 - Video.js
So we capture mouse events that bubble up to the player and report activity when that happens. With touch events it isn't as easy as touchstart and touchend toggle player controls.
Videojs Playback Technology ("Tech")
When using HTML5, the playback technology is the video or audio element. When using Flash, the playback technology is the specific Flash player used, e.g. Flowplayer, YouTube Player, video-js.swf, …
Video.js Blog | Video.js
So if you call myPlayer.play (), it will trigger a play in both the HTML5 and the Flash version, whichever is currently being used. A flowplayer API is just about done, and other popular Flash players will follow.
HTML5 Video Support | Video.js
A table of HTML5 codec support by browser.For a more detailed writeup of the various codecs and their browser support, we highly suggest Mozilla's excellent documentation.