Interface CoWatchingClient

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

Signature

interfaceCoWatchingClient

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年03月27日 UTC.