Klasa: PlayRequest
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-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.PlayRequest\u003c/code\u003e enables resuming playback of paused media on a cast receiver.\u003c/p\u003e\n"],["\u003cp\u003eIt's a class with a constructor to create a new request and a \u003ccode\u003ecustomData\u003c/code\u003e property for application-specific information.\u003c/p\u003e\n"]]],["The `PlayRequest` class in the `chrome.cast.media` namespace is used to request the playback of currently paused media. It's initiated with the `new PlayRequest()` constructor. The class includes a single property, `customData`, which is a nullable object. This property allows developers to send custom data to the receiver application along with the play request.\n"],null,["# Class: PlayRequest\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).PlayRequest\n=================================================================================================================================\n\nclass static\n\nA request to play the currently paused media.\n\nConstructor\n-----------\n\n### PlayRequest\n\nnew\nPlayRequest()\n\nProperty\n--------\n\n### customData\n\nnullable Object\n\nCustom data for the receiver application."]]