findOfflineVideoById

open fun findOfflineVideoById(videoId: String): Video

Finds the offline copy of the specified video, if it exists. Please note that a non-null return value does not mean the video has been completely downloaded. Please use getVideoDownloadStatus method to determine the current status of the offline copy. Operations to retrieve the video will block the UI thread. For asynchronous version use findOfflineVideoById.

Return

null if the offline copy of video was not found, otherwise the offline copy of the video

Parameters

videoId

the video id.

See also


open fun findOfflineVideoById(videoId: String, httpRequestConfig: HttpRequestConfig): Video

Finds the offline copy of the specified video, if it exists. Please note that a non-null return value does not mean the video has been completely downloaded. Please use getVideoDownloadStatus method to determine the current status of the offline copy. Operations to retrieve the video will block the UI thread. For asynchronous version use findOfflineVideoById.

Return

null if the offline copy of video was not found, otherwise the offline copy of the video.

Parameters

videoId

The id of the video to retrieve.

httpRequestConfig

Http parameters when retrieving the video. Use empty instead of null.


open fun findOfflineVideoById(videoId: String, callback: OfflineCallback<Video>)

Asynchronously finds the offline copy of the specified video, if it exists. Please note that a non-null return value does not mean the video has been completely downloaded. Please use getVideoDownloadStatus method to determine the current status of the offline copy.

Parameters

videoId

The id of the video to retrieve.


open fun findOfflineVideoById(videoId: String, httpRequestConfig: HttpRequestConfig, callback: OfflineCallback<Video>)

Asynchronously finds the offline copy of the specified video, if it exists. Please note that a non-null return value does not mean the video has been completely downloaded. Please use getVideoDownloadStatus method to determine the current status of the offline copy.

Parameters

videoId

The id of the video to retrieve.

httpRequestConfig

Http parameters when retrieving the video. Use empty instead of null.