owt-client-javascript icon indicating copy to clipboard operation
owt-client-javascript copied to clipboard

How to identify whether remote stream Video/Audio enabled or not ?

Open kurapatijayaram opened this issue 4 years ago • 3 comments

Hi, I publish a stream with audio and video, but later I disabled the audio/video, other user subscribed the stream and he wants to know the status of the stream whether audio/video enabled or not.

Is there a way to identify ?

Thanks.

kurapatijayaram avatar Dec 31 '20 12:12 kurapatijayaram

One solution is , using MediaStreamTrack we can identify, but, just want to know is there any other way to directly know the status of the stream.

kurapatijayaram avatar Dec 31 '20 12:12 kurapatijayaram

Enable or disable a track is defined in Media Capture and Streams. We don't notify other users who subscribe this track. You may send a message to other users when a track is enabled or disabled.

jianjunz avatar Jan 04 '21 02:01 jianjunz

It would be really helpful if there are methods like "hasAudio", "hasVideo" in subscription object. All other providers are providing such information, which will be helpful to represent in the view.

Thank you.

kurapatijayaram avatar Jun 16 '21 11:06 kurapatijayaram