Android OpenTV Player SDK  4.23.0.1201191
NMPMediaPlayer Class Reference

Inherits MediaPlayer.

Classes

interface  OnNMPTimedMetadataAvailableListener
 Interface definition of a callback to be invoked when a timed metadata is available for display. More...
 

Static Public Attributes

static final int MEDIA_ERROR_UNKNOWN = 1
 Unspecified media player error. More...
 
static final int MEDIA_ERROR_SERVER_DIED = 100
 Media server died. More...
 
static final int MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK = 200
 The video is streamed and its container is not valid for progressive playback i.e the video's index (e.g moov atom) is not at the start of the file. More...
 
static final int MEDIA_ERROR_IO = -1004
 File or network related operation errors. More...
 
static final int MEDIA_ERROR_MALFORMED = -1007
 Bitstream is not conforming to the related coding standard or file spec. More...
 
static final int MEDIA_ERROR_UNSUPPORTED = -1010
 Bitstream is conforming to the related coding standard or file spec, but the media framework does not support the feature. More...
 
static final int MEDIA_ERROR_TIMED_OUT = -110
 Some operation takes too long to complete, usually more than 3-5 seconds. More...
 
static final int MEDIA_ERROR_OPY_LICENSE_INVALID = -1350
 Either an invalid License, no License at all. More...
 
static final int MEDIA_ERROR_OPY_LICENSE_EXPIRED = -1351
 A valid license was set at SDK initialisation but has expired. More...
 
static final int MEDIA_ERROR_SSL_UNKNOWN = -1301
 Unspecified SSL error code. More...
 
static final int MEDIA_ERROR_SSL_CONNECT = -1302
 Error code that happens in SSL/TLS handshake procedure. More...
 
static final int MEDIA_ERROR_SSL_CACERT = -1303
 Peer certificate can not be authenticated with known CA certificates. More...
 
static final int MEDIA_ERROR_SSL_CACERT_BADFILE = -1304
 Cacert file could not be loaded,missing or wrong format. More...
 
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_VIDEO_TRACK_LAGGING = 700
 The video is too complex for the decoder: it can't decode frames fast enough. 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_STALLED = 799
 Media playback is continuous pausing internally because of network is stalled. More...
 
static final int MEDIA_INFO_BAD_INTERLEAVING = 800
 Bad interleaving means that a media has been improperly interleaved or not interleaved at all, e.g has all the video samples first then all the audio ones. More...
 
static final int MEDIA_INFO_NOT_SEEKABLE = 801
 The media cannot be seeked (e.g live stream) More...
 
static final int MEDIA_INFO_METADATA_UPDATE = 802
 A new set of metadata is available. More...
 
static final int MEDIA_INFO_UNSUPPORTED_SUBTITLE = 901
 Subtitle track was not supported by the media framework. More...
 
static final int MEDIA_INFO_SUBTITLE_TIMED_OUT = 902
 Reading the subtitle track takes too long. 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_INFO_METADATA_EXTRA_CURRENT_DATE = 2
 hls program date time happens, this is extra value for MediaPlayer.MEDIA_INFO_METADATA_UPDATE More...
 

Detailed Description

NMPMediaPlayer class can be used to return the playback information of audio/video streams.The playback of the streams must be done via the nagra.nmp.sdk.NMPVideoView class.

Member Data Documentation

◆ MEDIA_ERROR_IO

final int MEDIA_ERROR_IO = -1004
static

File or network related operation errors.

◆ MEDIA_ERROR_MALFORMED

final int MEDIA_ERROR_MALFORMED = -1007
static

Bitstream is not conforming to the related coding standard or file spec.

◆ MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK

final int MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK = 200
static

The video is streamed and its container is not valid for progressive playback i.e the video's index (e.g moov atom) is not at the start of the file.

See also
android.media.MediaPlayer.OnErrorListener

◆ MEDIA_ERROR_OPY_LICENSE_EXPIRED

final int MEDIA_ERROR_OPY_LICENSE_EXPIRED = -1351
static

A valid license was set at SDK initialisation but has expired.

◆ MEDIA_ERROR_OPY_LICENSE_INVALID

final int MEDIA_ERROR_OPY_LICENSE_INVALID = -1350
static

Either an invalid License, no License at all.

◆ MEDIA_ERROR_SERVER_DIED

final int MEDIA_ERROR_SERVER_DIED = 100
static

Media server died.

In this case, the application must release the NMPMediaPlayer object and instantiate a new one.

See also
android.media.MediaPlayer.OnErrorListener

◆ MEDIA_ERROR_SSL_CACERT

final int MEDIA_ERROR_SSL_CACERT = -1303
static

Peer certificate can not be authenticated with known CA certificates.

◆ MEDIA_ERROR_SSL_CACERT_BADFILE

final int MEDIA_ERROR_SSL_CACERT_BADFILE = -1304
static

Cacert file could not be loaded,missing or wrong format.

◆ MEDIA_ERROR_SSL_CONNECT

final int MEDIA_ERROR_SSL_CONNECT = -1302
static

Error code that happens in SSL/TLS handshake procedure.

◆ MEDIA_ERROR_SSL_UNKNOWN

final int MEDIA_ERROR_SSL_UNKNOWN = -1301
static

Unspecified SSL error code.

◆ MEDIA_ERROR_TIMED_OUT

final int MEDIA_ERROR_TIMED_OUT = -110
static

Some operation takes too long to complete, usually more than 3-5 seconds.

◆ MEDIA_ERROR_UNKNOWN

final int MEDIA_ERROR_UNKNOWN = 1
static

Unspecified media player error.

See also
android.media.MediaPlayer.OnErrorListener

◆ MEDIA_ERROR_UNSUPPORTED

final int MEDIA_ERROR_UNSUPPORTED = -1010
static

Bitstream is conforming to the related coding standard or file spec, but the media framework does not support the feature.

◆ MEDIA_INFO_BAD_INTERLEAVING

final int MEDIA_INFO_BAD_INTERLEAVING = 800
static

Bad interleaving means that a media has been improperly interleaved or not interleaved at all, e.g has all the video samples first then all the audio ones.

Video is playing but a lot of disk seeks may be happening.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_BUFFERING_END

final int MEDIA_INFO_BUFFERING_END = 702
static

MediaPlayer is resuming playback after filling buffers.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_BUFFERING_START

final int MEDIA_INFO_BUFFERING_START = 701
static

MediaPlayer is temporarily pausing playback internally in order to buffer more data.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_METADATA_EXTRA_CURRENT_DATE

final int MEDIA_INFO_METADATA_EXTRA_CURRENT_DATE = 2
static

hls program date time happens, this is extra value for MediaPlayer.MEDIA_INFO_METADATA_UPDATE

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_METADATA_EXTRA_TRACKS_CHANGED

final int MEDIA_INFO_METADATA_EXTRA_TRACKS_CHANGED = 1
static

media track change happens, this is extra value for MediaPlayer.MEDIA_INFO_METADATA_UPDATE

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_METADATA_UPDATE

final int MEDIA_INFO_METADATA_UPDATE = 802
static

A new set of metadata is available.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_NOT_SEEKABLE

final int MEDIA_INFO_NOT_SEEKABLE = 801
static

The media cannot be seeked (e.g live stream)

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_STALLED

final int MEDIA_INFO_STALLED = 799
static

Media playback is continuous pausing internally because of network is stalled.

◆ MEDIA_INFO_SUBTITLE_TIMED_OUT

final int MEDIA_INFO_SUBTITLE_TIMED_OUT = 902
static

Reading the subtitle track takes too long.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_UNKNOWN

final int MEDIA_INFO_UNKNOWN = 1
static

Unspecified media player info.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_UNSUPPORTED_SUBTITLE

final int MEDIA_INFO_UNSUPPORTED_SUBTITLE = 901
static

Subtitle track was not supported by the media framework.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_VIDEO_RENDERING_START

final int MEDIA_INFO_VIDEO_RENDERING_START = 3
static

The player just pushed the very first video frame for rendering.

See also
android.media.MediaPlayer.OnInfoListener

◆ MEDIA_INFO_VIDEO_TRACK_LAGGING

final int MEDIA_INFO_VIDEO_TRACK_LAGGING = 700
static

The video is too complex for the decoder: it can't decode frames fast enough.

Possibly only the audio plays fine at this stage.

See also
android.media.MediaPlayer.OnInfoListener