Class: MediaStatusMessage
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eMediaStatusMessage\u003c/code\u003e is used to send a \u003ccode\u003eMediaStatus\u003c/code\u003e object over the media channel for backward compatibility.\u003c/p\u003e\n"],["\u003cp\u003eIt contains a request ID, an array of \u003ccode\u003eMediaStatus\u003c/code\u003e objects (usually with only one element), and a message type.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create a new \u003ccode\u003eMediaStatusMessage\u003c/code\u003e using the constructor \u003ccode\u003enew MediaStatusMessage()\u003c/code\u003e.\u003c/p\u003e\n"]]],["`MediaStatusMessage` wraps a `MediaStatus` object for transmission via the media channel, primarily for backward compatibility. It contains `requestId`, which correlates to a specific request. The `status` property is a non-empty array of `MediaStatus` objects, though typically it holds only one. Lastly, `type` specifies the `MessageType`. The class uses a constructor `MediaStatusMessage()`. These are the properties associated with the given class.\n"],null,["# Class: MediaStatusMessage\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).MediaStatusMessage\n===========================================================================================================================================================\n\nclass static\n\nA message that wraps a MediaStatus object for sending it over the media\nchannel. This structure exists for backward-compatibility reasons.\n\nConstructor\n-----------\n\n### MediaStatusMessage\n\nnew\nMediaStatusMessage()\n\nProperties\n----------\n\n### requestId\n\n(number or undefined)\n\nThe corresponding request ID.\n\n### status\n\nnon-null Array of non-null [cast.framework.messages.MediaStatus](/cast/docs/reference/web_receiver/cast.framework.messages.MediaStatus)\n\nAn array of MediaStatus objects. In practice, this array never contains\nmore than one object.\n\n### type\n\nnon-null [cast.framework.messages.MessageType](/cast/docs/reference/web_receiver/cast.framework.messages#.MessageType)"]]