getCurrentMonotonicTimeInMs abstract method

Future<int> getCurrentMonotonicTimeInMs()

获取 SDK 当前的 Monotonic Time。

Monotonic Time 是指一个单调递增的时间序列,它的值会随着时间的推移而增加。单位为毫秒。 在自定义视频采集、自定义音频采集场景中,为确保音视频同步,声网建议你调用该方法获取 SDK 当前的 Monotonic Time 后,将该值传入采集的视频帧( VideoFrame )、音频帧( AudioFrame )的时间戳参数。

Returns ≥ 0: 方法调用成功,返回 SDK 当前的 Monotonic Time(毫秒)。 < 0: 方法调用失败。详见错误码了解详情和解决建议。

Implementation

Future<int> getCurrentMonotonicTimeInMs();