saveOffline

open fun saveOffline(@NonNull downloadRequest: DownloadRequest)

Enqueue a request to be downloaded. This method provides option to download media items without a DRM license, hence to play these media files one need to set Token and VideoId in com.vdocipher.aegis.player.VdoInitParams with enableOfflinePlayback.


VdoInitParams vdoParams = new VdoInitParams.Builder()
                          .setToken(mToken)
                          .setVideoId(mVideoId)
                          .enableOfflinePlayback()
                          .build();
We discourage you from using saveOffline to save media locally without a DRM license and getSavedMediaItems to retrieve these media items. Instead to incorporate offline playback in your app use enqueueV2 to download media items locally and query to retrieve these media items.

Parameters

downloadRequest

a download request