JWPlayer HLSJS Provider
See original GitHub issueI have made a github repository for the jwplayer provider, you can find it here:
github: https://github.com/Teranode/jw-provider
cdn: https://cdn.jsdelivr.net/gh/teranode/jw-provider@v0.0.1/provider.hlsjs.js
This features the full hls.js API support rather than the limited scope of functions directed by the original jwplayer provider. So you can configure all of what hls.js uses.
This also works with the external hls.js file, but can also use the internal one provided by jwplayer
Installation: append the cdn (or your own self-hosted copy) “before” the jwplayer file (might work after too but to be on the safe side load it before).
afterwards you will condifure p2pml (example):
const iid = setInterval(() => {
if (window.player.hls && window.player.hls.config) {
clearInterval(iid);
p2pml.hlsjs.initHlsJsPlayer(window.player.hls)
}
}, 200)
I’ll be providing updates as the jwplayer release schedule increments. This is currently compatible with JWPlayer 8.18.4
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:25
Top Related StackOverflow Question
right sorry about that i forgot to say that you needed to add this to the player setup:
You can add config through
hlsjsConfigwhen setup player. UsinghlsjsConfigwill keep default hls config without override like usingplayer.hls.config = { liveSyncDurationCount: 7, loader: engine.createLoaderClass() }Ex: