OTVUPISource class with playback information.
| OTVUPISource |
( |
@NonNull String |
xSrc, |
|
|
@NonNull String |
xType, |
|
|
@Nullable String |
xToken, |
|
|
@NonNull String |
xAdTagURL, |
|
|
@Nullable TextTrack[] |
xTextTracks, |
|
|
@Nullable Drm |
xDrm |
|
) |
| |
OTVUPISource constructor.
- Parameters
-
| xSrc | the address of the resource
-
OTT: an http/https stream URL
-
OTT: DVBC/IPTV: a unique identifier of the steam
|
| xType | the MIME-type of the source. e.g.
|
| xToken | the SSP stream token for DRM encrypted streams, it can be set later if it is null. |
| xAdTagURL | the URL of IMA ads |
| xTextTracks | the side-loaded text tracks as subtitles |
| xDrm | the DRM info for encrypted streams |
Get the the URL for the Advert tag.
- Returns
- the URL string
Get the DRM info for encrypted streams.
- Returns
- the DRM parameters object
get the stream URL
- Returns
- the stream URL
Get the side-loaded text tracks as subtitles.
- Returns
- the list of external tracks
Get the SSP stream token for DRM encrypted streams.
- Returns
- the token value
Get the MIME-type of the source.
- Returns
- the MIME type
| void setAdTagUrl |
( |
@NonNull String |
xAdTagUrl | ) |
|
Set the URL for the Advert tag.
- Parameters
-
| xAdTagUrl | the URL for the Advert tag |
| void setDrm |
( |
@Nullable Drm |
xDrm | ) |
|
Set the DRM info for encrypted streams.
- Parameters
-
| xDrm | the DRM parameters object |
| void setSrc |
( |
@NonNull String |
xSrc | ) |
|
Set the address of the resource.
- Parameters
-
| void setTextTracks |
( |
@Nullable TextTrack[] |
xTextTracks | ) |
|
Set the side-loaded text tracks as subtitles.
- Parameters
-
| xTextTracks | the list of external tracks |
| void setToken |
( |
@Nullable String |
xToken | ) |
|
Set the SSP stream token for DRM encrypted streams The token can be set later if the token is null when source to OTVUPIPlayer.
- Parameters
-
| void setType |
( |
@NonNull String |
xType | ) |
|
Set the MIME-type of the source.
- Parameters
-