playPreloadedSrc abstract method
Plays a preloaded media resource.
After calling the preloadSrc method to preload a media resource into the playlist, you can call this method to play the preloaded media resource. After calling this method, if you receive the onPlayerSourceStateChanged callback reporting the state as playerStatePlaying, the playback is successful. If you want to change the preloaded media resource being played, you can call this method again and specify a new media resource path. If you want to replay the media resource, you need to call preloadSrc again to preload the media resource into the playlist before playing. To clear the playlist, call stop. If you call this method while playback is paused, it will take effect only after playback resumes.
srcThe URL of the media resource in the playlist. It must match the src set in the preloadSrc method; otherwise, playback will fail.
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. See Error Codes for details and resolution suggestions.
Implementation
Future<void> playPreloadedSrc(String src);