toMediaInfo

open fun toMediaInfo(video: Video, source: Source): MediaInfo

Creates a MediaInfo object using a Video and a Source. The MediaMetadata will be created with the information available retrieved from the parameters.

Return

the media info

Parameters

video

the video

source

the source


open fun toMediaInfo(video: Video, source: Source, mediaMetadata: MediaMetadata, customData: JSONObject): MediaInfo

Creates a MediaInfo object using a Video, a Source and the MediaMetadata. If the MediaMetadata is null, one will be created with the information available retrieved from the parameters.

Return

the media info

Parameters

video

the video

source

the source

mediaMetadata

the media metadata

customData

the cast custom data


open fun toMediaInfo(context: Context, video: Video, source: Source): MediaInfo

Deprecated

Creates a MediaInfo object using a Video and a Source. The MediaMetadata will be created with the information available retrieved from the parameters.

Return

the media info

Deprecated

Use toMediaInfo.

Parameters

context

the context

video

the video

source

the source


open fun toMediaInfo(context: Context, video: Video, source: Source, mediaMetadata: MediaMetadata, customData: JSONObject): MediaInfo

Deprecated

Creates a MediaInfo object using a Video, a Source and the MediaMetadata. If the MediaMetadata is null, one will be created with the information available retrieved from the parameters.

Return

the media info

Deprecated

Use toMediaInfo.

Parameters

context

the context

video

the video

source

the source

mediaMetadata

the media metadata

customData

the cast custom data