getNetworkTimeInfo method
@detail api
@author songxiaomeng.19
@brief Obtain the synchronization network time information.
@return See ByteRTCNetworkTimeInfo{@link #ByteRTCNetworkTimeInfo}.
@note
- When you call this API for the first time, you starts synchornizing the network time information and receive the return value 0. After the synchonization finishes, you will receive rtcEngineOnNetworkTimeSynchronized:{@link #ByteRTCEngineDelegate#rtcEngineOnNetworkTimeSynchronized}. After that, calling this API will get you the correct network time.
- Under chorus scenario, participants shall start audio mixing at the same network time.
Implementation
FutureOr<ByteRTCNetworkTimeInfo> getNetworkTimeInfo() async {
final result = await nativeCall('getNetworkTimeInfo', []);
return packObject(
result,
() => ByteRTCNetworkTimeInfo(
const NativeClassOptions([], disableInit: true)));
}