.Setup() works but .Load() doesn't for my sources?
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?