OTVUPISource class with playback information.
◆ OTVUPISource() [1/2]
| 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. uri of ott online content, uuid of downloaded content
-
OTT: an http/https stream URL
-
OTT: DVBC/IPTV: an unique identifier of the steam
-
OTT: Offline stream: an uuid string of the offline stream
|
| xType | the MIME-type of the source. e.g.
-
HLS:
-
OTT: DASH:
-
OFFLINE STREAM:
|
| 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 |
◆ OTVUPISource() [2/2]
◆ getAdTagUrl()
Get the the URL for the Advert tag.
- Returns
- the URL string
◆ getDrm()
Get the DRM info for encrypted streams.
- Returns
- the DRM parameters object
◆ getSrc()
get the stream URL or UUID of offline stream
- Returns
- the stream URL or UUID of offline stream
◆ getTextTracks()
Get the side-loaded text tracks as subtitles.
- Returns
- the list of external tracks
◆ getToken()
Get the SSP stream token for DRM encrypted streams.
- Returns
- the token value
◆ getType()
Get the MIME-type of the source.
- Returns
- the MIME type
◆ setAdTagUrl()
| void setAdTagUrl |
( |
@NonNull String |
xAdTagUrl | ) |
|
Set the URL for the Advert tag.
- Parameters
-
| xAdTagUrl | the URL for the Advert tag |
◆ setDrm()
| void setDrm |
( |
@Nullable Drm |
xDrm | ) |
|
Set the DRM info for encrypted streams.
- Parameters
-
| xDrm | the DRM parameters object |
◆ setSrc()
| void setSrc |
( |
@NonNull String |
xSrc | ) |
|
Set the address of the resource or UUID of offline stream.
- Parameters
-
| xSrc | the address or the UUID of offline stream |
◆ setTextTracks()
| void setTextTracks |
( |
@Nullable TextTrack[] |
xTextTracks | ) |
|
Set the side-loaded text tracks as subtitles.
- Parameters
-
| xTextTracks | the list of external tracks |
◆ setToken()
| 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
-
◆ setType()
| void setType |
( |
@NonNull String |
xType | ) |
|
Set the MIME-type of the source.
- Parameters
-
◆ OFFLINE_TYPE
| String OFFLINE_TYPE = "application/x-offline" |
|
static |
The mimetype for offline stream.