Offline Playback with Android

The following APIs have been introduced that will instruct TVSDK to ignore network connectivity state when downloading manifests. Network connectivity state is generally used during Adaptive Bitrate streaming (ABR), to determine whether to attempt a fallback or wait for the network to resume.

NetworkConfiguration::setOfflinePlayback(boolean)
boolean NetworkConfiguration::getOfflinePlayback()

You can enable this setting and ignore the network connectivity.

Set com.adobe.mediacore.system.NetworkConfiguration::setOfflinePlayback to true. The default value for a boolean is false.

// example of NetworkConfiguration
// wherever you currently set up MediaResource and MediaPlayerItemConfig
NetworkConfiguration networkConfig = mediaPlayerItemConfig.getNetworkConfiguration();
networkConfig.setOfflinePlayback(true);
mediaPlayerItemConfig.setNetworkConfiguration(networkConfig);

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now