openWithMediaSource abstract method
Opens a media file and configures the playback scenarios.
This method supports opening media files of different sources, including a custom media source, and allows you to configure the playback scenarios.
source
Media resources. See MediaSource.
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. < 0: Failure.
Implementation
Future<void> openWithMediaSource(MediaSource source);