setOfflineStore

open fun setOfflineStore(context: Context, offlineStore: MediaStore)

Supplies the offline store used by downloadLicense to load the DASH manifest.

Offline-downloaded videos have their source URL rewritten to a local file path (see DashUtil.replaceVideoSourceUri); when set, the manifest is loaded through a MultiDataSource that resolves both the local manifest and its (remote-referenced) initialization segment against the offline store — the same path used for offline playback. When not set, license acquisition falls back to the plain HTTP behavior for online videos.

Parameters

context

the host application context.

offlineStore

the offline media store used to resolve downloaded assets to local files.