
Multiple streams problem
Hello, i'm trying to implement multiple sources to jwplayer (rtmp and http) to use from different devices.
the code is here:
jwplayer('fsvPlayerContainer').setup({
playlist: [{
sources: [{
file: rtmp
},{
file: b
}]
}],
width: "100%",
height: "100%"
});
But there is error "File not found" and i see in console that it tries to get current url ends with [object Object]
Then i tried to put url string directly to sources array
jwplayer('fsvPlayerContainer').setup({
playlist: [{
sources: [rtmp, b]
}],
width: "100%",
height: "100%"
});
and then i received an error "No suitable players found and fallback is on"
Please help me with it... Everything works if i'm using just 1 source like .setup({file:...})