类:PlayRequest
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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."]]