|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.smaxe.uv.media.core.MediaTrackInfo
public class MediaTrackInfo
MediaTrackInfo
- media track info.
Field Summary | |
---|---|
static int |
AUDIO
AUDIO - 0 : audio track id. |
static int |
AUDIO_VIDEO
AUDIO_VIDEO - 3 : audio/video track id. |
int |
codec
track codec. |
byte[] |
codecConfig
track codec configuration. |
static int |
DATA
DATA - 2 : data track id. |
long |
duration
track duration (in milliseconds), -1 if track duration is unknown. |
long |
frames
number of track frames, -1 if number of frames is unknown. |
int |
id
track id (starting with 0). |
long |
start
track start time (in milliseconds). |
int |
type
track type (one of AUDIO/VIDEO/DATA constants). |
static int |
VIDEO
VIDEO - 1 : video track id. |
Constructor Summary | |
---|---|
MediaTrackInfo(int id,
int type,
int codec,
byte[] codecConfig)
Constructor. |
|
MediaTrackInfo(int id,
int type,
int codec,
byte[] codecConfig,
long start,
long duration,
long frames)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
getCodecDescription(int codec)
Returns codec description. |
static java.lang.String |
getTrackTypeDescription(int type)
Returns track type description. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AUDIO
AUDIO
- 0 : audio track id.
public static final int VIDEO
VIDEO
- 1 : video track id.
public static final int DATA
DATA
- 2 : data track id.
public static final int AUDIO_VIDEO
AUDIO_VIDEO
- 3 : audio/video track id.
public final int id
public final int type
public final int codec
public final byte[] codecConfig
public final long start
public final long duration
-1
if track duration is unknown.
public final long frames
-1
if number of frames is unknown.
Constructor Detail |
---|
public MediaTrackInfo(int id, int type, int codec, byte[] codecConfig, long start, long duration, long frames)
id
- track idtype
- track type (one of AUDIO
, VIDEO
, DATA
)codec
- track codec idcodecConfig
- codec configurationstart
- track start time (in milliseconds), since the beginning of the streamduration
- track duration (in milliseconds)frames
- number of track framespublic MediaTrackInfo(int id, int type, int codec, byte[] codecConfig)
id
- track idtype
- track type (one of AUDIO
, VIDEO
, DATA
)codec
- track codec idcodecConfig
- codec configurationMethod Detail |
---|
public static java.lang.String getTrackTypeDescription(int type)
type
- track type
public static java.lang.String getCodecDescription(int codec)
codec
- codec id (one of AudioCodec
or VideoCodec
constants)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |