open abstract method
Opens the media resource.
This method is called asynchronously.
url
The path of the media file. Both local path and online path are supported.startPos
The starting position (ms) for playback. Default value is 0.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> open({required String url, required int startPos});