Method signature CoWatchingClient.notifySwitchedToMedia

Notify Meet that the user has switched media so Meet can pass that along to other users.

Signature

notifySwitchedToMedia(
mediaTitle:string,
mediaId:string,
mediaPlayoutPosition:number,
):void;

Details

Optional No

Parameters

Name Type Optional Description
mediaTitle string No The title of the media switched to. This title is reflected in the Meet UI when other users are considering connecting to the co-watching session.
mediaId string No The string URI of the media switched to.
mediaPlayoutPosition number No The position at which the media began playout.

Returns

void

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.