Android OpenTV Player SDK
5.16.2.1638449291
|
OTVMediaPlayer class can be used to return the playback information of audio/video streams. The playback of the streams must be done via the nagra.otv.sdk.OTVVideoView class.
Inherits MediaPlayer.
Public Member Functions | |
boolean | addSubtitleSource (String url, String mimeType, String language) |
Adds an external subtitle source to the content. More... | |
Static Public Attributes | |
static final int | MEDIA_INFO_UNKNOWN = 1 |
Unspecified media player info. More... | |
static final int | MEDIA_INFO_VIDEO_RENDERING_START = 3 |
The player just pushed the very first video frame for rendering. More... | |
static final int | MEDIA_INFO_BUFFERING_START = 701 |
MediaPlayer is temporarily pausing playback internally in order to buffer more data. More... | |
static final int | MEDIA_INFO_BUFFERING_END = 702 |
MediaPlayer is resuming playback after filling buffers. More... | |
static final int | MEDIA_INFO_LOAD_START = 798 |
load start event happens. More... | |
static final int | MEDIA_INFO_STALLED = 799 |
Stalled event happens. More... | |
static final int | MEDIA_INFO_METADATA_UPDATE = 802 |
A new set of metadata is available. More... | |
static final int | MEDIA_INFO_METADATA_EXTRA_TRACKS_CHANGED = 1 |
media track change happens, this is extra value for MediaPlayer.MEDIA_INFO_METADATA_UPDATE More... | |
static final int | MEDIA_ERROR_UNKNOWN = 1 |
Unspecified media player error. More... | |
static final int | MEDIA_ERROR_OPY_LICENSE_INVALID = -1350 |
static final int | MEDIA_ERROR_OPY_LICENSE_EXPIRED = -1351 |
static final int | MEDIA_ERROR_OPY_SSM_SETUP_FAILURE = -1352 |
SSM setup session request get failure. More... | |
static final int | MEDIA_ERROR_OPY_SSM_RENEWAL_FAILURE = -1353 |
SSM session renewal request get failure. More... | |
static final int | MEDIA_ERROR_OPY_SSM_TEARDOWN_FAILURE = -1354 |
SSM session teardown request get failure. More... | |
static final int | MEDIA_ERROR_OPY_DRM_DECRYPTION_FAILURE = -1355 |
DRM decryption error during playback. More... | |
static final int | MEDIA_ERROR_OPY_DRM_NOT_SUPPORTED = -1356 |
DRM type not supported on this device. More... | |
static final int | MEDIA_ERROR_DECODER_ERROR = -1357 |
Decoder errors (not supported). More... | |
static final int | MEDIA_ERROR_LICENSE_KEY_EXPIRED = -1358 |
Licence keys expired. More... | |
static final int | MEDIA_ERROR_LICENSE_SESSION_FAILURE = -1359 |
DRM Session Exception. More... | |
static final int | MEDIA_ERROR_LICENSE_SCHEME_DATA_FAILURE = -1360 |
Missing Scheme data for DRM session (data for uuid not found). More... | |
static final int | MEDIA_ERROR_LICENSE_DRM_SESSION_FAILURE = -1361 |
Non-specified DRM session manager error. More... | |
static final int | MEDIA_ERROR_PAK = -2000 |
PAK error. More... | |
static final int | MEDIA_ERROR_PAK_UNKNOWN = -2001 |
Unspecified PAK error. More... | |
static final int | MEDIA_ERROR_PAK_LICENSE_FETCH_FAILURE = -2002 |
Fetch license failure. More... | |
static final int | MEDIA_ERROR_PAK_ACCESS_DENIED = -2003 |
PAK session access denied. More... | |
static final int | MEDIA_ERROR_CONNECT = -3000 |
Connect error. More... | |
static final int | MEDIA_ERROR_CONNECT_UNKNOWN = -3001 |
Unspecified Connect error. More... | |
static final int | MEDIA_ERROR_CONNECT_LICENSE_FETCH_FAILURE = -3002 |
Fetch license failure. More... | |
static final int | MEDIA_ERROR_CONNECT_KEY_STATUS_INVALID = -3003 |
Connect key status invalid. More... | |
static final int | MEDIA_ERROR_CONNECT_NOT_PROVISIONED = -3004 |
Connect device not provisioned. More... | |
static final int | MEDIA_ERROR_CONNECT_DECRYPTION_FAILURE = -3005 |
Connect decryption failure. More... | |
static final int | MEDIA_ERROR_CONNECT_PROVISION_FAILURE = -3006 |
Connect provision failure. More... | |
static final int | MEDIA_ERROR_SSP = -3100 |
SSP server error. More... | |
static final int | MEDIA_ERROR_PROVISION = -3200 |
Provision error. More... | |
boolean addSubtitleSource | ( | String | url, |
String | mimeType, | ||
String | language | ||
) |
Adds an external subtitle source to the content.
An external subtitle/caption source can be added to the content to play back via this method. Currently only SRT subs are supported.
url | the remote url of the subtitles |
mimeType | the mime type of the subtitles (must be "application/x-subrip" currently) |
language | the language identifier of the subtitles (will appear in subtitle track selection) |
|
static |
Connect error.
|
static |
Connect decryption failure.
|
static |
Connect key status invalid.
|
static |
Fetch license failure.
|
static |
Connect device not provisioned.
|
static |
Connect provision failure.
|
static |
Unspecified Connect error.
|
static |
Decoder errors (not supported).
|
static |
Non-specified DRM session manager error.
|
static |
Licence keys expired.
|
static |
Missing Scheme data for DRM session (data for uuid not found).
|
static |
DRM Session Exception.
|
static |
DRM decryption error during playback.
|
static |
DRM type not supported on this device.
|
static |
|
static |
|
static |
SSM session renewal request get failure.
|
static |
SSM setup session request get failure.
|
static |
SSM session teardown request get failure.
|
static |
PAK error.
|
static |
PAK session access denied.
|
static |
Fetch license failure.
|
static |
Unspecified PAK error.
|
static |
Provision error.
|
static |
SSP server error.
|
static |
Unspecified media player error.
|
static |
MediaPlayer is resuming playback after filling buffers.
|
static |
MediaPlayer is temporarily pausing playback internally in order to buffer more data.
|
static |
load start event happens.
|
static |
media track change happens, this is extra value for MediaPlayer.MEDIA_INFO_METADATA_UPDATE
|
static |
A new set of metadata is available.
|
static |
Stalled event happens.
|
static |
Unspecified media player info.
|
static |
The player just pushed the very first video frame for rendering.