AI-generated Key Takeaways
-
EditAudioTracksRequestData
is used for handling media event requests to edit audio tracks, enabling language selection or default track activation. -
It allows specifying the desired language, prioritizing it over active track IDs if both are provided.
-
The
isSuggestedLanguage
property indicates if the language was inferred, allowing receiver apps to use user preferences. -
It inherits properties like
customData
,mediaSessionId
,requestId
, andsequenceNumber
fromcast.framework.messages.RequestData
for extended functionality and request management.
cast.framework.messages. EditAudioTracksRequestData
Media event EDIT_AUDIO_TRACKS request data. If language is not provided, the default audio track for the media will be enabled.
Constructor
EditAudioTracksRequestData
new EditAudioTracksRequestData()
Properties
customData
(non-null Object or undefined)
Application-specific data for this request. It enables the sender and receiver to easily extend the media protocol without having to use a new namespace with custom messages.
- Inherited from
- cast.framework.messages.RequestData#customData
isSuggestedLanguage
(boolean or undefined)
Indicates that the provided language was not explicit user request, but rather inferred from used language in voice query. It allows receiver apps to use user saved preference instead of spoken language.
language
(string or undefined)
Language for the track that should be active. The language field will take precedence over activeTrackIds if both are specified.
mediaSessionId
(number or undefined)
Id of the media session that the request applies to.
- Inherited from
- cast.framework.messages.RequestData#mediaSessionId
requestId
number
Id of the request, used to correlate request/response.
- Inherited from
- cast.framework.messages.RequestData#requestId
sequenceNumber
(number or undefined)
A number to synchronize all queue commands. If provided for a queue command, the SDK will verify the queue latest sequence number match the request. Current sequenceNumber is provided as part of outgoing queue changed messages.
- Inherited from
- cast.framework.messages.RequestData#sequenceNumber