cast.framework.events. SessionDataEvent
Event data for a cast.framework.events.EventType.SESSION_DATA event.
Fired for HLS EXT-X-SESSION-DATA tags, and only when Shaka Player is used.
Constructor
SessionDataEvent
new SessionDataEvent(id, uri, language, value)
Parameter |
|
|---|---|
|
id |
string |
|
uri |
string |
|
language |
string |
|
value |
string |
Properties
id
string
The ID of the session data, representing the "DATA-ID" attribute. This should conform to a reverse DNS naming convention, such as "com.example.movie.title"; however, there is no central registration authority, so playlist authors should take care to choose a value that is unlikely to collide with others.
language
string
The language of the session data, representing the "LANGUAGE" attribute. It contains a language tag RFC5646 (https://datatracker.ietf.org/doc/html/rfc8259) that identifies the language of "VALUE".
uri
string
The URI of the session data, representing the "URI" attribute. It carries a resource relevant to this session data.
value
string
The value of the session data, representing the "VALUE" attribute. It contains the data identified by "DATA-ID". If the language is specified, "VALUE" should contain a human-readable string written in the specified language.