In my application users with the role PUBLISHER by default do not publish your stream. First they send a signal to the user with role MODERATOR and this user approves with another signal so that the stream is published for everyone.
In our tests, we noticed that when publishing these users, the streamCreated and streamPlaying events are triggered by the Publisher object but only about 6 seconds after these events are triggered that the subscribers start receiving the audio and image from that Publisher. Because of this, everything that Publisher sent image and audio is lost in those 6 seconds.
So how long does it take for a publisher’s audio to reach subscribers and how do you know for sure that audio is reaching subscribers? We are unable to trust the streamCreated and streamPlaying events issued by Publisher.