Open NDRugbyGit opened 7 months ago
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?