You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to setup an HLS fallback in case where RTMP session is blocked by FW.
here is my code:
var options = {
sources: ["rtmp://live.you.tv/live/3","http://live.you.tv/live/3/index.m3u8"],
parentId: "#playerrtmp",
autoPlay: true,
width: "100%",
height: "100%",
rtmpConfig: {
swfPath: 'dist/assets/RTMP.swf',
scaling:'stretch',
playbackType: 'live',
bufferTime: 1,
startLevel: 0
},
plugins: [RTMP]
};
var player = new Clappr.Player(options);
When RTMP identifies a blocked session, it prompts:
Sun Nov 27 2016 02:27:59 PM.486 [INFO] [RTMP] MediaPlayer error: [Event type="mediaError" bubbles=false cancelable=false eventPhase=2]
but doesn't switch to the HLS path, which is also avaliable.
Any ideas how to address this issue?
BR, Yaron
The text was updated successfully, but these errors were encountered:
Thanks for your answer!
No problem dealing with assigning the right source (rtmp/HLS) outside the player, but is there a listener that can indicate rtmp mediaError?
Hi, I'm trying to setup an HLS fallback in case where RTMP session is blocked by FW.
here is my code:
var options = {
sources: ["rtmp://live.you.tv/live/3","http://live.you.tv/live/3/index.m3u8"],
parentId: "#playerrtmp",
autoPlay: true,
width: "100%",
height: "100%",
rtmpConfig: {
swfPath: 'dist/assets/RTMP.swf',
scaling:'stretch',
playbackType: 'live',
bufferTime: 1,
startLevel: 0
},
plugins: [RTMP]
};
var player = new Clappr.Player(options);
When RTMP identifies a blocked session, it prompts:
Sun Nov 27 2016 02:27:59 PM.486 [INFO] [RTMP] MediaPlayer error: [Event type="mediaError" bubbles=false cancelable=false eventPhase=2]
but doesn't switch to the HLS path, which is also avaliable.
Any ideas how to address this issue?
BR, Yaron
The text was updated successfully, but these errors were encountered: