Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

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

Open
kurapatijayaram opened this issue Dec 31, 2020 · 3 comments
Open
Labels
question Questions about OWT SDKs.

Comments

@kurapatijayaram
Copy link

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
Copy link
Author

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.

@jianjunz
Copy link
Collaborator

jianjunz commented Jan 4, 2021

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 jianjunz added the question Questions about OWT SDKs. label Jan 4, 2021
@kurapatijayaram
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Questions about OWT SDKs.
Projects
None yet
Development

No branches or pull requests

2 participants