You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to get the state of the stream I am subscribed to, such as Active or Inactive. However, there does not seem to be any way to do so. iSubscribing does not change to false when the stream stops broadcasting while McSubscriber is subscribed. OnSubscribing only fires when the stream is published, not when it is unpublished.
The Use Case:
The unity app subscribes to a stream published from OBS WebRTC. The app displays the stream. The stream is stopped from OBS, the app does stuff because the stream ended (remove a game object, display a message, etc).
Here are some steps to illustrate what I am seeing:
Unity App subscribes to a stream that is not yet published. isSubscribing is false, onSubscribing has not fired.
The stream is published from OBS. isSubscribing is now True. onSubscribing fires.
The app can now take action based on the stream being published.
The stream is unpublished from OBS. isSubscribing is still true. onSubscribing does not fire.
I can also republish the stream here and it will go back to step 2.
So given all that, how can we tell in Unity if the Stream is published or not?
The text was updated successfully, but these errors were encountered:
Hey @NDRugbyGit, thanks for reporting this. I have added OnActive and OnInactive events to the subscriber in the v1.2.0-beta.0 release. You can pull this tag into your project by appending the #v1.2.0-beta.0 to the git url when passing it to your package manager
I am looking to get the state of the stream I am subscribed to, such as Active or Inactive. However, there does not seem to be any way to do so. iSubscribing does not change to false when the stream stops broadcasting while McSubscriber is subscribed. OnSubscribing only fires when the stream is published, not when it is unpublished.
The Use Case:
The unity app subscribes to a stream published from OBS WebRTC. The app displays the stream. The stream is stopped from OBS, the app does stuff because the stream ended (remove a game object, display a message, etc).
Here are some steps to illustrate what I am seeing:
So given all that, how can we tell in Unity if the Stream is published or not?
The text was updated successfully, but these errors were encountered: