Questions tagged [video.js]

Video.js is an open source JavaScript framework for embedding and working with HTML5 and Flash video. It uses the HTML5 video tag as an embed code, and has a common HTML/CSS skin and API for both HTML5 and Flash.

What is ?

Video.js is an and library that makes it easier to work with and build on . This is also known as an HTML5 Video Player. it's licensed under the Apache License, Version 2.0. View the license file.

Video.js provides a common controls skin built in HTML/CSS, fixes cross-browser inconsistencies, adds additional features like fullscreen and subtitles, manages the fallback to Flash or other playback technologies when HTML5 video isn't supported, and also provides a consistent JavaScript API for interacting with the video.

It can be extended to work with additional players, like YouTube and QuickTime. Video.js also support HLS, 360 degree, live streaming and panorama videos.


Resources

2234 questions
15
votes
5 answers

VideoJS : keep controls visible

I like videoJS but can't find a way to keep the control bar always visible (no fade out when playing). I searched for informations about that and found a topic about it, where they advice to override the function conceal like this : /override…
gordie
  • 1,637
  • 3
  • 21
  • 41
14
votes
4 answers

Play html5 video tag simultaneously on Safari

i have this weird behavior on html5 video tag. I have 4 videos, that i want to play at the same time. So i create my own control bar to play/pause, so when play button is clicked, all 4 videos is played, same as pause button. On safari, it has weird…
morgan9999
  • 731
  • 1
  • 11
  • 30
13
votes
3 answers

How can you make Video.JS skip forwards and backwards 15 seconds?

The Play pause button works for HTML5 video and this Video.JS. I am not sure why the other functions don't work for video.js, even though they work for HTML5 video? What can I do to make video JS skip forward and backwards 15 seconds? Also, for…
user6173198
13
votes
4 answers

Playing with video.js ustream m3u8 file streaming

I have tried to play in a web page a m3u8 file streaming with video.js, But I could not do it, I do not know where the mistake is Video
grigione
  • 697
  • 2
  • 11
  • 37
13
votes
5 answers

VideoJS - unable to destroy and initialize

On VideoJS website you state that support was moved to StackOverflow, so let's try it here. I've got the following code: var player = _V_('the_id', {}, function(){ jQuery('.remove').on('click.destroyvideojs', function(){ …
Atadj
  • 7,050
  • 19
  • 69
  • 94
12
votes
5 answers

VideoJS 4.0 Plugin: How to properly add items to the controlBar?

I'm looking at the new API for videojs plugins: https://github.com/videojs/video.js/blob/master/docs/plugins.md Is there a proper way to add items to the control bar? I'm looking to add 'tweet', 'like' and other assorted buttons. I've hackishly…
Broonix
  • 1,135
  • 2
  • 11
  • 26
11
votes
1 answer

How to start video at a given time?

I'm trying to create a clip from a video. which have fixed start and end time. So when I click on the button then the video should start from the given time. Here's my code
Jitendra
  • 584
  • 1
  • 10
  • 28
11
votes
7 answers

ReferenceError: videojs is not defined

I am using video.js (in CDN-Mode) and everything seems to work fine (with Firefox 26.0). The video is embedded and works fine. But when I want to access the video-Object, I'm getting the console-error: ReferenceError: videojs is not defined on the…
Stefan Wegener
  • 726
  • 1
  • 10
  • 25
11
votes
2 answers

Does video.js video player supports youtube videos?

I need customized HTML5 video player, also I need youTube videos to play. I got one HTML 5 video player vidoeJS http://www.videojs.com/, but I am not able to play a youTube video in this player. How to make youTube player to play using this player.
John Melchior
  • 417
  • 2
  • 5
  • 22
11
votes
5 answers

Video.js - Autoplay and Loop not working on phone

I use this code to make a video (eg. banner, so no controls) autoplay and loop forever.
Lesik2008
  • 487
  • 1
  • 8
  • 16
11
votes
7 answers

How can I pause ALL videos (html5) at once?

// now pause all active videos $('.vid').get(0).pause(); $('.vid').get(1).pause(); $('.vid').get(2).pause(); That's what I have right now, but it's less than ideal. I'm a bit tired, so I could be missing something obvious, but how can I just tell…
prismspecs
  • 1,482
  • 6
  • 20
  • 35
10
votes
4 answers

How to add event listener to videojs when start to play a video?

How do I add event listener to videojs when the video is start to play? (this event should be called at the begging of the play)? I searched on Player Events docs, but I can't find any event that tell me "now the video is start play".
Jon Sud
  • 10,211
  • 17
  • 76
  • 174
10
votes
2 answers

Video Js loading source dynamically

Hi I have an application which has a grid and a js video player. Currently I am populating the grid with data from a SQL database, I have a function call when ever a row is clicked which calls a stored procedure and returns a url i then use that url…
10
votes
5 answers

how to make volume bar vertical in video.js player?

I have tried solution given here on the site but it didn't work. Setting up volume control vertical in video.js Where I can get best tutorial about video.js.. Any link?
user43004
  • 217
  • 1
  • 2
  • 4
10
votes
2 answers

How to setup subtitles in video.js

I am searching on internet about 3 hours ago and i am confused how to implement subtitles in video.js player. I have add
Sufyan
  • 506
  • 2
  • 6
  • 18