类:VolumeRequestData
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-02。
[null,null,["最后更新时间 (UTC):2023-12-02。"],[[["`VolumeRequestData` is used for `SET_VOLUME` media event requests, allowing senders to adjust the volume on the receiver."],["It inherits properties like `requestId`, `mediaSessionId`, and `customData` from `RequestData` for request management and application-specific data."],["The `volume` property is a crucial part of this request, specifying the desired volume level using a `cast.framework.messages.Volume` object."],["Developers can leverage `sequenceNumber` to synchronize queue commands and ensure consistency in handling media playback requests."]]],["`VolumeRequestData` is a class for media event requests to set volume. It extends `RequestData` and includes properties like `customData`, enabling application-specific data exchange, and `mediaSessionId`, to specify the session for the request. It also contains `requestId` for request-response correlation, `sequenceNumber` for synchronizing queue commands, and `volume`, which represents the media stream volume to be set. The class facilitates volume control operations within the media framework.\n"]]