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
Hello, I'm trying to do something quite unusual and I wanted to ask if there's an idiomatic way to do this with the existing Chime JavaScript API before I explore other options.
What I'm Trying to Do
In my situation, there are two attendees in a single meeting. One attendee (which I'll call the broadcaster) streams video and has a local preview of their stream, while the other attendee is a spectator. I'd like the spectator to be able to "pause" the stream such that both the spectator's view and and broadcaster's preview are showing the same image.
I know that I can use the pauseVideoTile to stop the pause on the spectator side, but the difficulty is getting the broadcaster preview and spectator view synchronized, since the spectator is "in the past" relative to the broadcaster. If I simply call stopVideoInput on the broadcaster side, it causes the video stream on the spectator side to go blank (as you'd expect).
Is there a way I can stop streaming on the broadcaster side, such that the spectator will continue consuming whatever video was already on the wire, and then freeze on the last frame of video sent by the broadcaster?
The text was updated successfully, but these errors were encountered:
JDSeiler
changed the title
Synchronizing Video Stream between Two Peers
Synchronized Pausing Between Two Peers
Oct 23, 2023
Hello, I'm trying to do something quite unusual and I wanted to ask if there's an idiomatic way to do this with the existing Chime JavaScript API before I explore other options.
What I'm Trying to Do
In my situation, there are two attendees in a single meeting. One attendee (which I'll call the broadcaster) streams video and has a local preview of their stream, while the other attendee is a spectator. I'd like the spectator to be able to "pause" the stream such that both the spectator's view and and broadcaster's preview are showing the same image.
I know that I can use the pauseVideoTile to stop the pause on the spectator side, but the difficulty is getting the broadcaster preview and spectator view synchronized, since the spectator is "in the past" relative to the broadcaster. If I simply call stopVideoInput on the broadcaster side, it causes the video stream on the spectator side to go blank (as you'd expect).
Is there a way I can stop streaming on the broadcaster side, such that the spectator will continue consuming whatever video was already on the wire, and then freeze on the last frame of video sent by the broadcaster?
The text was updated successfully, but these errors were encountered: