Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

.Setup() works but .Load() doesn't for my sources?

$
0
0
Current solution works great : var player = jwplayer("video"); function showVideo(strFilename) { var strFilenameWithExtension = strFilename; player.setup({ sources: [ { file: "link1" + strFilename}, { file: "link2" + strFilename}, { file: "link3" + strFilename} ], rtmp: { securetoken: "token", bufferlength: 3 }, proxyType: "best", width: "100%", height: "100%", controls: false }); player.setMute(!soundOn); player.on('complete', nextPresentation); player.on('error', onErrorEncountered); } My new solution, to use .Load() to load my sources: function initVideoPlayer() { player.setup({ rtmp: { securetoken: "token", bufferlength: 3 }, proxyType: "best", width: "100%", height: "100%", controls: false }); player.setMute(!soundOn); player.on('complete', nextPresentation); player.on('error', onErrorEncountered); } function showVideo(strFilename) { var strFilenameWithExtension = strFilename; player.load({ sources: [ { file: "link1" + strFilename}, { file: "link2" + strFilename}, { file: "link3" + strFilename} ] }); } However this doesn't work. I get "Error loading player: No playable sources found" Am I doing something wrong in the extraction of my sources?

Viewing all articles
Browse latest Browse all 2800

Trending Articles



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