RafaelRibeiro
Member
Hello!
We are experience issues (video is duplicated) on embed video player as bellow:
We are experience issues (video is duplicated) on embed video player as bellow:
if ( Flashphoner.getSessions().length > 0 ) {
session = Flashphoner.getSessions()[0];
if ( session.getServerUrl().toString() === url.toString() ) {
if ( session.getStreams() && session.getStreams().length > 0 ) {
if ( session.getStreams()[0].status() !== 'PLAYING' ) {
if ( session.getStreams()[0].status() === 'NEW' ) {
session.getStreams()[0].play();
return;
}
}
}
return;
} else {
//remove session DISCONNECTED and FAILED callbacks
session.on(SESSION_STATUS.DISCONNECTED, () => {
});
session.on(SESSION_STATUS.FAILED, () => {
});
session.disconnect();
}
}
We cannot reproduce it on our demo server with Embed Player example "out-of-the-box"Yeah, we can reproduce it here too, in the same way.
@Max, can you check please?
<iframe id='fp_embed_player' src='https://demo.flashphoner.com:8888/embed_player?urlServer=wss://demo.flashphoner.com:8443&streamName=test&mediaProviders=WebRTC' marginwidth='0' marginheight='0' frameborder='0' width='100%' height='100%' scrolling='no' allowfullscreen='allowfullscreen'></iframe>