Check incoming video state

cheinan

Member
Hello
We have problem of connected viewers that not getting any video.
Is there any way to check incoming video state on webRTS or on WSPlayer?

Thanks
Cheinan
 

ashbreeze

New Member
On the server side, you can use the REST API:
You can call it like: http://flashphoner-server:9091/rest-api/stream/find_all
Ensure that you see: "status":"PUBLISHING" for your stream.

https://flashphoner.com/docs/wcs5/wcs_docs/html/en/wcs-rest-api/

On client side, look into the stream status listeners:
Code:
session.on(STREAM_STATUS.PLAYING, function(previewStream){

        // Video is being received. It should be playing

    }).on(STREAM_STATUS.STOPPED, function(){

        // Stream not playing

    }).on(STREAM_STATUS.FAILED, function(){

        // Stream issue
        }

    }).play();
https://flashphoner.com/docs/wcs5/w...loper-guide-2/index.html?streamer_web_sdk.htm
 
Top