public final class Timestamp extends Object
SystemCapability.Multimedia#AUDIO| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
Timestamp.Timebase |
Enumerates the time base of this
Timestamp. |
| 构造器 | 说明 |
|---|---|
Timestamp() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
long |
getFramePosition() |
Obtains the value representing the frame position in this
Timestamp instance. |
long |
getNanoTimestamp() |
Obtains the current timestamp (in nanoseconds).
|
void |
setFramePosition(long framePosition) |
Changes the value representing the frame position in this
Timestamp instance. |
void |
setNanoTimestamp(long nanoTimestamp) |
Changes the current timestamp (in nanoseconds).
|
public long getFramePosition()
Timestamp instance.public void setFramePosition(long framePosition)
Timestamp instance.framePosition - Indicates the value of the current frame position to set.public long getNanoTimestamp()
public void setNanoTimestamp(long nanoTimestamp)
nanoTimestamp - Indicates the timestamp to set.