MediaInfo
A type that aggregates information about a media item.
Used by RemoteMediaClient.loadMedia to load media on the receiver application.
Hierarchy
- MediaInfo
Index
Properties
- contentId
- contentType
- contentUrl
- customData
- entity
- hlsSegmentFormat
- hlsVideoSegmentFormat
- mediaTracks
- metadata
- streamDuration
- streamType
- textTrackStyle
Properties
Optional contentId
• contentId? : undefined | string
The content ID for this stream.
Optional contentType
• contentType? : undefined | string
The content (MIME) type.
contentUrl
• contentUrl: string
The URL of the content to be played.
Optional customData
• customData? : undefined | object
The custom data, if any
Optional entity
• entity? : undefined | string
The deep link for the media as used by Google Assistant, if any.
Optional hlsSegmentFormat
• hlsSegmentFormat? : MediaHlsSegmentFormat
The format of HLS audio segments. One of AAC, AC3, E-AC3, FMP4, MP3, TS, TS-AAC.
Optional hlsVideoSegmentFormat
• hlsVideoSegmentFormat? : MediaHlsVideoSegmentFormat
The format of HLS video segments. One of FMP4, MPEG2-TS.
Optional mediaTracks
• mediaTracks? : MediaTrack[]
The media tracks for this stream.
Optional metadata
• metadata? : Generic | Movie | MusicTrack | Photo | TvShow | User
The media item metadata.
Optional streamDuration
• streamDuration? : undefined | number
The length of the stream, in seconds, or undefined if it is a live stream.
Optional streamType
• streamType? : MediaStreamType
The stream type. One of buffered, live, none.
Optional textTrackStyle
• textTrackStyle? : TextTrackStyle | null
The text track style for this stream.
