enableOfflinePlayback

Allows Player to use locally saved media files for playback. Token/OTP and Playback Info must me provided before using this method with Builder using setToken and setPlaybackInfo. However, we discourage you from using this method with Builder, this method serves a very special use case of playing media items saved locally without a DRM license. Generally, you will be using setOfflinePlayback to play media items offline which should be downloaded using enqueueV2.

Return

Builder

Throws

{@link IllegalArgumentException}

in case of using this without the token/OTP and Playback Info