Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewer not receiving broadcast event "updated" or "track" events when publisher switches off video/audio #439

Open
jaya-kumar-softobiz opened this issue Sep 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@jaya-kumar-softobiz
Copy link

Hi guys, the doc below says that "updated" event will fire when a video/audio track is added or removed to a feed
https://docs.dolby.io/streaming-apis/docs/viewer-events
But we are not receiving those events in viewer.on("broadcastEvent", handleBroadcastEvent) even though the viewer subscribed to it using view.connect()
The viewer is receiving all other events like active/inactive/layers/viewercount except this "updated" event
We need this event because we want the viewer to know that a publisher has switched off their audio/video (i.e mic/camera)

I was expecting a source.publish.webRTCPeer?.replaceTrack(audioTrack) will trigger that but got nothing.
Then I tried to remove the track completely but still nothing source.publish.getRTCPeerConnection().removeTrack(rtcRTPSenderAudioTrack)

Even checked the track events viewer.on("track", handleTrack).
source.publish.webRTCPeer?.replaceTrack(audioTrack) or source.publish.getRTCPeerConnection().removeTrack(rtcRTPSenderAudioTrack) is not triggering a "track" event either

Track events are being received only during "active" broadcast event. When a source starts with both camera and mic on, Viewer gets an "active" broadcast event followed by two "track" events (audio and video). But now if the source stops mic/camera, the changes are reflected on the viewer UI immediately but not receiving any events

We are using latest version of millicast sdk. How are these "updated" broadcast events triggered exactly when the Publisher changes the video/audio track? Please help

image

image

image

@jaya-kumar-softobiz jaya-kumar-softobiz added the question Further information is requested label Sep 22, 2024
@jaya-kumar-softobiz
Copy link
Author

FYI, I am using the below react repo. The code in the screen shot is from this repo
https://github.com/dolbyio-samples/rts-app-react-publisher-viewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant