8/23/2019 Hls .js Vs Video.js
I am starting off on HTML5 and javascript and I have a basic doubt about video.js regarding the relation between HTML5 player/html 'video' tag and video.js and the purpose of video.js. My specific questions are:
HTTP Live Streaming (HLS) has become a de-facto standard for streaming video on desktop and on mobile devices thanks to its native support on iOS and Android. Tight integration with video.js and a philosophy of exposing as much as possible with standard HTML APIs. I'm trying to play HLS videos on my wordpress site using video.js. I can hear the audio, but video is not visible. Any idea why so. I tried other links (e.g.this), and video is visible.
If yes then:
a. Is there any other reason in using Video.js apart from the better look and feel and controls it provides. I understand that there are plugins available for video.js which have addition functionalities like playing HLS and DASH video etc, but here I am talking about the core video.js module.
b. Is it necessary to use the HTML5 player or it can be changed to use a custom player inside video.js
If answer to Q1 is no then:
a. If video.js is using its own player, then why does it even need a 'video' tag in the HTML file for it to create and use its own player. This seems to indicate that there is some relation between the video.js and the HTML5 player.
b. Also I see that the constructor for the video.js seems to be called only when the 'video' tag is parsed/loaded in the html file and not when the javascript file in included in the 'head' section of the html. So what/how/who creates the mapping(if any) between the 'video' element of HTML and video.js getting initialized.
Archit Sinha
Archit SinhaArchit Sinha
1 Answer
video.js it's checking if the browser supports the HTML5 in case it doesn't then it will run a flash player. Basically it provides you with browser compatibility.
obsergiuobsergiu
Not the answer you're looking for? Browse other questions tagged javascripthtml5-videovideo.js or ask your own question.Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commentscommented Apr 27, 2018â¢
edited by gkatsev
commented Apr 30, 2018
commented May 2, 2018
commented Jun 18, 2018
bot commented Aug 17, 2018
bot closed this Aug 25, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |