createMediaPlayer abstract method
Creates a media player object.
Before calling any APIs in the MediaPlayer class, you need to call this method to create an instance of the media player. If you need to create multiple instances, you can call this method multiple times.
Returns An MediaPlayer object, if the method call succeeds. An empty pointer, if the method call fails.
Implementation
Future<MediaPlayer?> createMediaPlayer();