Comments (6)
It needs the dependency to support old browsers that hls.js can play on, and they require flash to play HLS. So in case hls.js's .isSupported() returns false it can fallback to the videojs-contrib-hls code to do it's thing.
Having said that, it can be interesting to load it async only on demand.
from videojs-contrib-hls.js.
I'd consider removing that as a dependency entirely. That seems like something that developers using this plugin could do, without adding the 162kb of code to each distribution.
For my use case I don't need or want any Flash fallback, so I'll have to rely on a custom build that doesn't include that fallback.
from videojs-contrib-hls.js.
+1 for removing the extra dependancy. We are opting for this plugin as a replacement for the original videojs-contrib-hls
as the media errors are not handled properly by that and it does not make much sense to still carry that around. I think using Flash as a fallback handler for HLS should be left to the developer not to mention the fact that Flash is deprecated and Google is panning to block Adobe Flash and implement an 'HTML5 by Default' policy on Chrome by the end of 2016. The intention is to use HTML5 automatically, and force users to explicitly accept the use of Flash only where there is no other choice.
from videojs-contrib-hls.js.
I think it's a good idea, but I think it should be opt-out. Since that's the expectations for videojs-contrib-hls and we wouldn't want to break that behavior.
How about an additional build?
from videojs-contrib-hls.js.
Another build is a better idea. You still have users on old IE browsers
from videojs-contrib-hls.js.
see #15
from videojs-contrib-hls.js.
Related Issues (19)
- README is misleading HOT 7
- README is misleading in regards to association with videojs-contrib-hls HOT 3
- Why the name "videojs-contrib-hls.js"? HOT 2
- No audio in Chrome (Mac) HOT 4
- Get 'hls' reference HOT 5
- how to correctly setup with videojs HOT 1
- Create an additional build without the videojs-contrib-hls dependency HOT 1
- Uncaught TypeError: Cannot read property 'code' of null HOT 2
- CEA 608/708 captions into video.js on Chrome/FireFox HOT 2
- gulp/browserify: Cannot find module 'videojs-contrib-hls.js' HOT 1
- videojs captions button does not appear HOT 1
- Retry the video in case of Network error HOT 4
- Android webview in fullscreen black screen?
- Subtitles for Audio only stream not showing up
- Airplay not working
- Uncaught TypeError: Cannot read property 'code' of null
- Does not support videojs-contrib-quality-levels HOT 1
- Update HLS.js?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videojs-contrib-hls.js.