Failed by RTP activity sometimes while broadcast

Hi,
I have made this change in flashphoner properties
rtp_activity_detecting =false,60

Still sometimes we see this issue (out of 10, 1 user gets this error)

When user is on sharing screen he is not aware when this issue occurred. When he stops sharing he notice that his session was not recorded due to this error.
1. What change we need to do to resolve this issue further ? OR
2. Can we handle this and show alert on shared screen instead of main screen so that user can stop the current session and start new if issue occurred ?
 

Max

Administrator
Staff member
Good day.
1. What change we need to do to resolve this issue further ?
Please set the following two parameters in flashphoner.properties file instead of obsolete rtp_activity_detecting
Code:
rtp_activity_audio=false
rtp_activity_video=false
2. Can we handle this and show alert on shared screen instead of main screen so that user can stop the current session and start new if issue occurred ?
Client side receives STREAM_STATUS.FAILED in this case, so you should handle it and display something to the publisher
Code:
    session.createStream({
        name: streamName,
        display: localVideo,
        constraints: constraints
    }).on(STREAM_STATUS.PUBLISHING, function(publishStream){
        ...
    }).on(STREAM_STATUS.UNPUBLISHED, function(){
       ...
    }).on(STREAM_STATUS.FAILED, function(stream){
        // Here you should display a warning
        setStatus(STREAM_STATUS.FAILED, stream);
        //enable start button
        onStopped();
    }).publish();
 
Thanks for quick reply we already have this
on(STREAM_STATUS.FAILED, function(stream){
console.log('FAILED')
setStatus(STREAM_STATUS.FAILED, stream);
alert(STREAM_STATUS.FAILED+" "+stream.getInfo())
$('#stop-share-screen').prop('disabled', true);
$("#windowClose").prop('disabled', false);
//enable start button
// onStopped();
clearInterval(timer);
// window.close();
}).publish();

but this shows alert message on main window not on shared screen. We need to show the alert on shared window so that even if user is on sharing window he knows that error has occurred and he/she needs to start again
 

Max

Administrator
Staff member
but this shows alert message on main window not on shared screen. We need to show the alert on shared window so that even if user is on sharing window he knows that error has occurred and he/she needs to start again
alert() function is JavaScript function provided by browser. Probably the browser can not display a message on another window, especially if it is another application window. So this issue is out of WCS WebSDK scope. You can look for some third party libraries which allows to customize interface, WebSDK responsible for streaming part only.
 
Top