deleteVideo

open fun deleteVideo(video: Video): Boolean

This method can be used to remove all assets related to a single video from the host device. Deleting a video download will not cause the license to be deleted/released. Please call releaseLicense to release and remove the license. Operations to delete the video download will block the UI thread. For asynchronous version use deleteVideo.

Return

true if the video was found in the download queue and deleted, otherwise false.

Parameters

video

to be deleted.

See also


open fun deleteVideo(video: Video, callback: OfflineCallback<Boolean>)

Asynchronously deletes the offline copy of the specified video. If the video has not been fully downloaded yet, then it will be removed from the download queue and any partially download assets belonging to the video will be deleted. The developer is responsible for either releasing any license key set identifier attached to the video using releaseLicense or saving the license key set identifier for future reuse.

Parameters

video

The video to be deleted.


open fun deleteVideo(videoId: String): Boolean

Deletes the offline copy of the specified video. If the video has not been fully downloaded yet, then it will be removed from the download queue and any partially download assets belonging to the video will be deleted. The developer is responsible for either releasing any license key set identifier attached to the video using releaseLicense or saving the license key set identifier for future reuse. Operations to delete the video download will block the UI thread. For asynchronous version use deleteVideo.

Return

true if the video was removed from the download queue and the storage, otherwise false.

Parameters

videoId

the unique identified of the video to be deleted.

See also


open fun deleteVideo(videoId: String, callback: OfflineCallback<Boolean>)

Asynchronously deletes the offline copy of the specified video. If the video has not been fully downloaded yet, then it will be removed from the download queue and any partially download assets belonging to the video will be deleted. The developer is responsible for either releasing any license key set identifier attached to the video using releaseLicense or saving the license key set identifier for future reuse.

Parameters

videoId

The Id of the video to be deleted.