MediaPlayerController
The AgoraVideoView controller used to render the video for the media player.
abstract class MediaPlayerController
    implements MediaPlayer, VideoViewControllerBase {
  factory MediaPlayerController(
          {required RtcEngine rtcEngine,
          required VideoCanvas canvas,
          RtcConnection? connection,
          bool useFlutterTexture = false,
          bool useAndroidSurfaceView = false}) =>
      MediaPlayerControllerImpl(
        rtcEngine,
        canvas,
        connection,
        useFlutterTexture,
        useAndroidSurfaceView,
      );
  Future<void> initialize();
}
            Attributes
- rtcEngine
 - RtcEngine.
 - canvas
 - Local video display properties. See VideoCanvas.
 - useFlutterTexture
 - Whether to use 
FlutterTextureto render video:true: UseFlutterTextureto render video.false: Do not useFlutterTextureto render video.
Note:FlutterTextureapplies to iOS, macOS and Windows platforms. - useAndroidSurfaceView
 - Whether to use Android 
SurfaceViewto render video:true: Use AndroidSurfaceViewto render video.false: Do not use AndroidSurfaceViewto render video.
Note: AndroidSurfaceViewapplies to Android platform only. 
initialize
Creates a MediaPlayerController.
Future<void> initialize();
Details
Note: 
                    
            - Make sure the RtcEngine is initialized before you call this method.
 - Make sure to call this method before calling other APIs in MediaPlayer.