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)."],[[["\u003cp\u003e\u003ccode\u003eRemotePlayerChangedEvent\u003c/code\u003e signals changes in the remote player's state, providing details about the specific field that was modified.\u003c/p\u003e\n"],["\u003cp\u003eThis event includes the event type, the name of the changed field (\u003ccode\u003efield\u003c/code\u003e), and the new value of that field (\u003ccode\u003evalue\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this event to track and respond to real-time changes in the remote player, such as playback status or volume adjustments.\u003c/p\u003e\n"]]],["The `RemotePlayerChangedEvent` class handles events when remote player fields change. It's instantiated with `type` (event type), `field` (name of the changed field), and `value` (the new field value). The class properties, `field` and `value`, store the name of the modified field and its corresponding updated value, respectively. The `type` parameter is required when constructing the class.\n"],null,["# Class: RemotePlayerChangedEvent\n\ncast.[framework](/cast/docs/reference/web_sender/cast.framework).RemotePlayerChangedEvent\n=========================================================================================\n\nclass static\n\nRemote player field change event.\n\nConstructor\n-----------\n\n### RemotePlayerChangedEvent\n\nnew\nRemotePlayerChangedEvent(type, field, value)\n\n| #### Parameter ||\n|-------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.RemotePlayerEventType](/cast/docs/reference/web_sender/cast.framework#.RemotePlayerEventType) Event type. Value must not be null. |\n| field | string The changed field name. |\n| value | any type The new field value. |\n\nProperties\n----------\n\n### field\n\nstring\n\nThe field name that was changed.\n\n### value\n\nany type\n\nThe new field value."]]