public static final class IMedia.TrackSampleXWithOffset extends java.lang.Object implements IMedia.ITrackSampleX
TrackSampleXWithOffset
- track sample with defined offset.Constructor and Description |
---|
TrackSampleXWithOffset(IMedia.ITrackSample sample)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getId() |
long |
getOffset() |
int |
getRtime() |
long |
getSize() |
long |
getTimestamp() |
MediaTrackInfo |
getTrack() |
boolean |
isKey() |
void |
setOffset(long offset)
Sets offset.
|
java.lang.String |
toString() |
public TrackSampleXWithOffset(IMedia.ITrackSample sample)
sample
- payload
- public void setOffset(long offset)
offset
- public MediaTrackInfo getTrack()
getTrack
in interface IMedia.ITrackSample
public long getId()
getId
in interface IMedia.ITrackSample
public int getRtime()
getRtime
in interface IMedia.ITrackSample
Note:
- This is coding/decoding timestamp.
public long getTimestamp()
getTimestamp
in interface IMedia.ITrackSample
Note:
- This is presentation timestamp.
public long getSize()
getSize
in interface IMedia.ITrackSample
public boolean isKey()
isKey
in interface IMedia.ITrackSample
public long getOffset()
getOffset
in interface IMedia.ITrackSampleX
public java.lang.String toString()
toString
in class java.lang.Object