Interface CoWatchingClient

Client-constructed CoWatching experience with hooks for hosts to manage the state.

Signature

interface CoWatchingClient

Method signatures

Name Description
notifyBuffering(mediaPlayoutPosition) Notify Meet that the media isn't ready to be played due to buffering, a prior media switch, seeking, or normal network congestion.
notifyPauseState(paused, mediaPlayoutPosition) Notify Meet that the user has paused or unpaused the playback of media, so Meet can mirror that action for other users.
notifyPlayoutRate(rate, mediaPlayoutPosition) Notify Meet that the user updated the playout rate of the media to a new value (for example, 1.25x).
notifyReady(mediaPlayoutPosition) Notify Meet that the buffering is complete and the media is now ready to play, starting at the supplied timestamp.
notifySeekToTimestamp(mediaPlayoutPosition) Notify Meet that the user has sought the playback point of the media, so Meet can mirror that action for other users.
notifySwitchedToMedia(mediaTitle, mediaId, mediaPlayoutPosition) Notify Meet that the user has switched media so Meet can pass that along to other users.