Skip navigation links

Package com.theoplayer.android.api.source

THEOplayer SDK API source package

See: Description

Package com.theoplayer.android.api.source Description

THEOplayer SDK API source package

This package contains classes for making SourceDescription Objects

Getting started examples

to set a source use:

playerView.getPlayer().setSource(sourceDescription);

Simple setSource example not using builders

To use Player.setSource(SourceDescription) with a simple source without using the builders you do:

SourceDescription sourceDescription = new SourceDescription("http://yourLicensedDomain.com/yourVideo.ext")

setSource example with widevine DRM using builders

To use setSource with a source using the builders you do:

KeySystemConfiguration widevine = new KeySystemConfiguration("https://yourLicenseAcquisitionURl.com/urlData");
DRMConfiguration drmConfiguration = DRMConfiguration.Builder.widevineDrm(com.theoplayer.android.api.source.drm.KeySystemConfiguration) widevine}(widevine).build();
TypedSource widevineSource = typedSource("http://yourLicensedDomain.com/yourVideo.ext").drm(drmConfiguration).build();
SourceDescription sourceDescription = sourceDescription(widevineSource).build();
Skip navigation links