Closed navjotss closed 6 years ago
how are you configuring the clappr? can you paste it here?
// something similar to
Clappr.new({
// config
})
window.onload = function() {
var player = new Clappr.Player({
source: 'http://www.streambox.fr/playlists/test_001/stream.m3u8',
parentId: '#player-wrapper',
plugins: {
core: [LevelSelector]
},
width: 640, height: 360,
hideMediaControl: false,
autoPlay: true
});
}
Please, try:
plugins: [LevelSelector],
Using this player start working but level selector not shown in player. I tried compile code again and it start working for that we need to update some code in node_modules folder. node-sass version because it is not compatible with ubuntu 16 64bit. true-case-path folder.
Sorry to bump this but some plugins require to be in core, so there ends up being a conflict. Any solutions to this?
Hi Team,
I compiled the level sector code on my local machine (ubuntu 16.0 ) with node 9.5.0. After made change in web config file according to the latest version(all webpack.config.js,package.json and levelsector.js file are added in code folder). only level-selector.js file generated in dist file. I used it with clappr.js file and got below error. Tried
console.log(JSON.stringify(externalPlugins));
Got this response
{"0":{"core":[{"default":{}}]},"1":"1"}
After that i use level selector cdn link Got this response
{"0":{"core":[null]},"1":"1"}
code.zip