pauseVideoDownload

open fun pauseVideoDownload(video: Video): Int

This method is used to pause a single video being downloaded. Operations to pause the video download will block the UI thread. For asynchronous version use pauseVideoDownload.

Return

the current status of the video download.

Parameters

video

the video to be paused.

See also

Throws

if the underlying download process does not support pausing video downloads.


open fun pauseVideoDownload(video: Video, callback: OfflineCallback<Integer>)

This method is used to asynchronously pause a single video being downloaded.

Parameters

video

The video to be paused.

callback

Provides the result of the operation. In case the download of the requested video has been paused successfully, onSuccess will be called to provide an Integer value of its current com.brightcove.player.network.DownloadStatus.StatusCode. onFailure will be called in case there was an error.


open fun pauseVideoDownload(videoId: String): Int

This method is used to pause a single video being downloaded. Operations to pause the video download will block the UI thread. For asynchronous version use pauseVideoDownload.

Return

the current status of the video download.

Parameters

videoId

the video id.

See also

Throws

if the underlying download process does not support pausing video downloads.


open fun pauseVideoDownload(videoId: String, callback: OfflineCallback<Integer>)

This method is used to asynchronously pause a single video being downloaded.

Parameters

videoId

The id of the video to be paused.

callback

Provides the result of the operation. In case the download of the requested video has been paused successfully, onSuccess will be called to provide an Integer value of its current com.brightcove.player.network.DownloadStatus.StatusCode. onFailure will be called in case there was an error.