Class | Description |
---|---|
GoogleDaiTypedSource |
A Google DAI source.
|
GoogleDaiTypedSource.Builder |
The builder for a Google DAI source.
|
SourceDescription |
A Source Description.
|
SourceDescription.Builder |
The builder for
SourceDescription . |
TextTrackDescription |
A TextTrack description contains information of a side-loaded text track, that can be added to the source.
|
TextTrackDescription.Builder |
The builder for TextTrackDescription.
|
TypedSource |
The Typed Source API.
|
TypedSource.Builder |
The builder for TypedSource.
|
Enum | Description |
---|---|
AdIntegration |
The integration type of the ad break(s).
|
SourceType |
The types of sources.
|
This package contains classes for making SourceDescription Objects
to set a source use:
playerView.getPlayer
().setSource
(sourceDescription);
To use Player.setSource(SourceDescription)
with a simple source without using the builders you do:
SourceDescription sourceDescription = new SourceDescription
("http://yourLicensedDomain.com/yourVideo.ext")
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();