Closed Tilkeii closed 6 years ago
can you test with:
var player = new Clappr.Player({
source: "http://192.168.1.23:8080/hls/test/index.m3u8",
parentId: "#player",
plugins: [LevelSelector]
});
It doesn't work neither. Still 0 error and clappr working well but not the plugin
Hi @Tilkeii
I tested here and it's working fine, try for yourself:
Add external plugins
with http://cdn.jsdelivr.net/gh/clappr/clappr-level-selector-plugin@latest/dist/level-selector.min.jsvar playerElement = document.getElementById("player-wrapper");
var player = new Clappr.Player({
source: 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8',
poster: 'http://clappr.io/poster.png',
plugins: [LevelSelector],
mute: true,
height: 360,
width: 640
});
player.attachTo(playerElement);
[Run]
Oh i think i find the problem. I tested with the configuration i had but with your source link (https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8) and it work. I think adding port break the plugin
Maybe it's related to your hls stream, does it have multiple renditions?
I use nginx-rtmp-module and i have only 1 simple application
rtmp {
server {
listen 1935;
ping 30s;
notify_method get;
application hls {
live on;
max_connections 1;
hls on;
hls_path /usr/local/nginx/hls;
hls_nested on;
}
}
}
Oh i think i get it. I'll try to fix my HLS stream
I'm using clappr with m3u8 playlist and clappr-level-selector-plugin doesn't work. I have the same code as the exemple. There is no error in console and clappr work fine