My Jw player is getting stuck when I try to play a video m3u8 via P2P HLS provider.
Although I have the AutoStart true and mute true.
My code is:
<div id="player"></div>
<script>
var engine = new p2pml.hlsjs.Engine();
var player = jwplayer("player");
player.setup({
preload: "auto",
sharing: true,
sources: "https://hls.afintl.com/hls/stream.m3u8",
playbackRateControls: true,
primary: "html5",
autostart: true,
mute: true,
aboutlink: "https://anym3u8player.com",
abouttext: "M3U8 Player Online",
skin: {
url: "https://res.cloudinary.com/do1zdkwaj/raw/upload/v1704087632/SUB/neflex_uoodhg.css",
name: "Netplex"
},
captions: {
color: "white",
fontSize: 16,
backgroundOpacity: 0,
fontFamily: "Helvetica",
edgeStyle: "raised"
},
});
jwplayer_hls_provider.attach();
p2pml.hlsjs.initJwPlayer(player, {
liveSyncDurationCount: 7,
loader: engine.createLoaderClass()
});
</script>
I will add the test link: https://anym3u8player.com/player-generator/test.php
When autostart is set to true and mute to true, it should automatically run the video.