|
Android OpenTV Player SDK
5.14.1.1626112806
|
Class for MediaPlayer to return each audio/video/subtitle track's metadata.
Public Member Functions | |
| int | getTrackType () |
| Gets the track type. More... | |
| int | getEncodeType () |
| Gets the track encode type. More... | |
| String | getName () |
| Gets the name of the track. More... | |
| String | getLanguage () |
| Gets the language code of the track. More... | |
| boolean | getActive () |
| Gets the track status. More... | |
| boolean | isActive () |
| Returns the track status. More... | |
| String | getCharacteristics () |
| Get the Uniform Type Identifiers(UTI) of the current track which is defined in rfc-8216. More... | |
| List< OTVVideoTrackInfo > | getVideoTrackInfos () |
| If the track type is MEDIA_TRACK_TYPE_VIDEO, this will return video information for each of the underlying tracks e.g. More... | |
| String | toString () |
| Returns a string containing a concise, human-readable description of this object. More... | |
Static Public Attributes | |
| static final int | MEDIA_TRACK_TYPE_UNKNOWN = 0 |
| Unknown track type. More... | |
| static final int | MEDIA_TRACK_TYPE_VIDEO = 1 |
| Video track type. More... | |
| static final int | MEDIA_TRACK_TYPE_AUDIO = 2 |
| Audio track type. More... | |
| static final int | MEDIA_TRACK_TYPE_TIMEDTEXT = 3 |
| Timed text track type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_DVB_BITMAP = 0 |
| DVB bitmap subtitle encoding type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_EIA_608 = 1 |
| EIA CC608 encoding type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_EIA_708 = 2 |
| EIA CC708 encoding type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_ID3 = 3 |
| ID3 subtitle encoding type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_WEBVTT = 4 |
| Webvtt subtitle encoding type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_SRT = 5 |
| SRT encoding type. More... | |
| static final int | SUBTITLE_TRACK_ENCODING_TYPE_SMPTE = 6 |
| SMPTE encoding type. More... | |
| static final int | VIDEO_TRACK_ENCODING_TYPE_AVC = 0 |
| Advanced Video Coding/H.264, as specified by MPEG-4 Part 10 (ISO/IEC 14496-10) More... | |
| static final int | AUDIO_TRACK_ENCODING_TYPE_AAC = 0 |
| Advanced Audio Coding, as specified by MPEG-4 Part 3 (ISO/IEC_14496-3) More... | |
Package Functions | |
| void | setIndex (int rendererIndex, int groupIndex, int trackIndex) |
| Set index for the track. More... | |
| int | rendererIndex () |
| return the renderer Index of track More... | |
| int | groupIndex () |
| return the group index of track More... | |
| int | trackIndex () |
| return the index of track More... | |
| boolean getActive | ( | ) |
| String getCharacteristics | ( | ) |
Get the Uniform Type Identifiers(UTI) of the current track which is defined in rfc-8216.
For HLS stream, returns the characteristics information of the rendition. For DASH stream, maps stream adaptation accessibility descriptor to UTI, and returns it.
| int getEncodeType | ( | ) |
Gets the track encode type.
| String getLanguage | ( | ) |
Gets the language code of the track.
| String getName | ( | ) |
Gets the name of the track.
| int getTrackType | ( | ) |
Gets the track type.
| List<OTVVideoTrackInfo> getVideoTrackInfos | ( | ) |
If the track type is MEDIA_TRACK_TYPE_VIDEO, this will return video information for each of the underlying tracks e.g.
resolutions, bitrates; otherwise it will return null
|
package |
return the group index of track
| boolean isActive | ( | ) |
Returns the track status.
|
package |
return the renderer Index of track
|
package |
Set index for the track.
| String toString | ( | ) |
Returns a string containing a concise, human-readable description of this object.
|
package |
return the index of track
|
static |
Advanced Audio Coding, as specified by MPEG-4 Part 3 (ISO/IEC_14496-3)
|
static |
Audio track type.
|
static |
Timed text track type.
|
static |
Unknown track type.
|
static |
Video track type.
|
static |
DVB bitmap subtitle encoding type.
|
static |
EIA CC608 encoding type.
|
static |
EIA CC708 encoding type.
|
static |
ID3 subtitle encoding type.
|
static |
SMPTE encoding type.
|
static |
SRT encoding type.
|
static |
Webvtt subtitle encoding type.
|
static |
Advanced Video Coding/H.264, as specified by MPEG-4 Part 10 (ISO/IEC 14496-10)