Renvoie l'état actuel du lecteur multimédia local. Cette méthode est appelée régulièrement, elle doit donc être écrite pour être performante.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[],[],null,["# Interface CoWatchingDelegate\n\n| **Early Access Program:** This feature was only available in limited preview, through an Early Access Program. This program is now closed to new signups.\n\nHost-provided set of callbacks required to operate a CoWatching experience.\n\nSignature\n---------\n\n interface CoWatchingDelegate extends CoActivityDelegate\n\nHeritage\n--------\n\n| Extends | [CoActivityDelegate](./live_sharing_sdk.coactivitydelegate.md) |\n|---------|----------------------------------------------------------------|\n\nProperty signatures\n-------------------\n\n| Name | Description |\n|---------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [`activityTitle`](./live_sharing_sdk.coactivitydelegate.activitytitle.md) | User-suitable string describing the CoActivity. *(Inherited from [`CoActivityDelegate`](./live_sharing_sdk.coactivitydelegate.md))* |\n\nMethod signatures\n-----------------\n\n| Name | Description |\n|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [`onCoWatchingStateChanged(newState)`](./live_sharing_sdk.cowatchingdelegate.oncowatchingstatechanged.md) | Apply the supplied state to media playout, up to and including switching to a new media stream if the mediaId changes. |\n| [`onCoWatchingStateQuery()`](./live_sharing_sdk.cowatchingdelegate.oncowatchingstatequery.md) | Return the current state of the local media playout. This is called regularly so it should be written to be performant. |"]]