Quantcast
Viewing all articles
Browse latest Browse all 2800

JWplayer Configurations - HLS setup

Good Day all, Hoping someone can see where it is I'm going wrong here, have only the fundamental knowledge here. I have my video Element [code] Loading the player... [/code] then later I have the Configuration [code] var playerInstance = jwplayer("myElement"); var preBufferDone = true; playerInstance.setup({ file: $("#myElement").data("video"), stretching: "uniform", width:"100%", aspectratio:"16:9", autostart: true, tracks: [{ file: 'assets/vids/Gugu.srt', label: 'Zulu', default: true }] , captions: { edgeStyle: 'uniform', backgroundOpacity: '0', } }); playerInstance.setVolume(50); [/code] Now I have a new setup to have Dynamic Bit rates, so i see the code when testing the Demo is [code] { "playlist": [ { "sources": [ { "default": false, "file": " **** ", "label": "0", "type": "hls", "preload": "none" } ] } ], "primary": "html5", "hlshtml": true, "autostart": true, "id": "stream-tester-player-https" } [/code] but I don't seem to be having luck when i try setup like this it keeps saying no playable source found, [code] var playerInstance = jwplayer("myElement"); var preBufferDone = true; playerInstance.setup({ "playlist": [ { "sources": [ { "default": false, "file": "", "label": "0", "type": "hls", "preload": "none" } ] } ], "primary": "html5", "hlshtml": true, "autostart": true, "width":"100%", "aspectratio":"16:9", }); playerInstance.setVolume(50); [/code] not sure what it is I'm doing incorrectly here.

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>