OptionalMediaControls
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThe media response supports optional media control types, which indicate user interactions like pausing or stopping the media.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePAUSED\u003c/code\u003e and \u003ccode\u003eSTOPPED\u003c/code\u003e are two specific media control types, triggered when a user pauses the media or exits the third-party session during playback, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe default value for media control type is \u003ccode\u003eOPTIONAL_MEDIA_CONTROLS_UNSPECIFIED\u003c/code\u003e and carries no specific meaning.\u003c/p\u003e\n"]]],["The core content outlines media control types and their corresponding events. `PAUSED` is triggered when a user pauses the media. `STOPPED` occurs when a user exits a third-party session while media is playing. `OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED` represents an undefined value for media control. These controls dictate how the media response can be handled and specify user interactions.\n"],null,["# OptionalMediaControls\n\nMedia control types the media response can supported optionally\n\n| Enums ||\n|---------------------------------------|---------------------------------------------------------------------------|\n| `OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED` | Unspecified value |\n| `PAUSED` | Paused event. Triggered when user pauses the media. |\n| `STOPPED` | Stopped event. Triggered when user exit out 3p session during media play. |"]]