Android OpenTV Player SDK  5.35.1.1715158939
OTVUPISource Class Reference

Detailed Description

OTVUPISource class with playback information.

Classes

class  Drm
 DRM Server information. More...
 
class  TextTrack
 External text tracks information. More...
 

Public Member Functions

 OTVUPISource (@NonNull String xSrc, @NonNull String xType, @Nullable String xToken, @NonNull String xAdTagURL, @Nullable TextTrack[] xTextTracks, @Nullable Drm xDrm)
 OTVUPISource constructor. More...
 
 OTVUPISource ()
 OTVUPISource default constructor. More...
 
void setSrc (@NonNull String xSrc)
 Set the address of the resource or UUID of offline stream. More...
 
String getSrc ()
 get the stream URL or UUID of offline stream More...
 
void setType (@NonNull String xType)
 Set the MIME-type of the source. More...
 
String getType ()
 Get the MIME-type of the source. More...
 
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. More...
 
String getToken ()
 Get the SSP stream token for DRM encrypted streams. More...
 
void setAdTagUrl (@NonNull String xAdTagUrl)
 Set the URL for the Advert tag. More...
 
String getAdTagUrl ()
 Get the the URL for the Advert tag. More...
 
void setTextTracks (@Nullable TextTrack[] xTextTracks)
 Set the side-loaded text tracks as subtitles. More...
 
TextTrack[] getTextTracks ()
 Get the side-loaded text tracks as subtitles. More...
 
void setDrm (@Nullable Drm xDrm)
 Set the DRM info for encrypted streams. More...
 
Drm getDrm ()
 Get the DRM info for encrypted streams. More...
 

Static Public Attributes

static String OFFLINE_TYPE = "application/x-offline"
 The mimetype for offline stream. More...
 

Constructor & Destructor Documentation

◆ 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
xSrcthe 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
xTypethe MIME-type of the source. e.g.
  • HLS:
    'application/x-mpegURL'
  • OTT: DASH:
    'application/dash+xml'
  • OFFLINE STREAM:
    'application/x-offline'
xTokenthe SSP stream token for DRM encrypted streams, it can be set later if it is null.
xAdTagURLthe URL of IMA ads
xTextTracksthe side-loaded text tracks as subtitles
xDrmthe DRM info for encrypted streams

◆ OTVUPISource() [2/2]

OTVUPISource default constructor.

Member Function Documentation

◆ getAdTagUrl()

String getAdTagUrl ( )

Get the the URL for the Advert tag.

Returns
the URL string

◆ getDrm()

Drm getDrm ( )

Get the DRM info for encrypted streams.

Returns
the DRM parameters object

◆ getSrc()

String getSrc ( )

get the stream URL or UUID of offline stream

Returns
the stream URL or UUID of offline stream

◆ getTextTracks()

TextTrack [] getTextTracks ( )

Get the side-loaded text tracks as subtitles.

Returns
the list of external tracks

◆ getToken()

String getToken ( )

Get the SSP stream token for DRM encrypted streams.

Returns
the token value

◆ getType()

String 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
xAdTagUrlthe URL for the Advert tag

◆ setDrm()

void setDrm ( @Nullable Drm  xDrm)

Set the DRM info for encrypted streams.

Parameters
xDrmthe DRM parameters object

◆ setSrc()

void setSrc ( @NonNull String  xSrc)

Set the address of the resource or UUID of offline stream.

Parameters
xSrcthe address or the UUID of offline stream

◆ setTextTracks()

void setTextTracks ( @Nullable TextTrack[]  xTextTracks)

Set the side-loaded text tracks as subtitles.

Parameters
xTextTracksthe 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
xTokenthe token value

◆ setType()

void setType ( @NonNull String  xType)

Set the MIME-type of the source.

Parameters
xTypethe Mime type

Member Data Documentation

◆ OFFLINE_TYPE

String OFFLINE_TYPE = "application/x-offline"
static

The mimetype for offline stream.