Android OpenTV Player SDK  5.29.0.1685538953
 All Classes Namespaces Functions Variables Pages
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. More...
 
String getSrc ()
 get the stream URL 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...
 

Constructor & Destructor Documentation

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
  • OTT: an http/https stream URL
  • OTT: DVBC/IPTV: a unique identifier of the steam
xTypethe MIME-type of the source. e.g.
  • HLS:
    'application/x-mpegURL'
  • OTT: DASH:
    'application/dash+xml'
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 default constructor.

Member Function Documentation

String getAdTagUrl ( )

Get the the URL for the Advert tag.

Returns
the URL string
Drm getDrm ( )

Get the DRM info for encrypted streams.

Returns
the DRM parameters object
String getSrc ( )

get the stream URL

Returns
the stream URL
TextTrack [] getTextTracks ( )

Get the side-loaded text tracks as subtitles.

Returns
the list of external tracks
String getToken ( )

Get the SSP stream token for DRM encrypted streams.

Returns
the token value
String getType ( )

Get the MIME-type of the source.

Returns
the MIME type
void setAdTagUrl ( @NonNull String  xAdTagUrl)

Set the URL for the Advert tag.

Parameters
xAdTagUrlthe URL for the Advert tag
void setDrm ( @Nullable Drm  xDrm)

Set the DRM info for encrypted streams.

Parameters
xDrmthe DRM parameters object
void setSrc ( @NonNull String  xSrc)

Set the address of the resource.

Parameters
xSrcthe address
void setTextTracks ( @Nullable TextTrack[]  xTextTracks)

Set the side-loaded text tracks as subtitles.

Parameters
xTextTracksthe 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
xTokenthe token value
void setType ( @NonNull String  xType)

Set the MIME-type of the source.

Parameters
xTypethe Mime type