getNetworkTimeInfo abstract method

Future<NetworkTimeInfo?> getNetworkTimeInfo()

Obtains the synchronization network time information.

Notes:

  • When you call this API for the first time, you starts synchronizing the network time information and receive the return value 0. After the synchronization finishes, you will receive RTCVideoEventHandler.onNetworkTimeSynchronized. 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

Future<NetworkTimeInfo?> getNetworkTimeInfo();