create static method
Creates a NativeVideoRenderer instance with the video view.
This is a convenience factory that creates the video view and returns a NativeVideoRenderer instance to control it.
Implementation
static Future<NativeVideoRenderer?> create({
required String videoId,
required String videoUrl,
required int width,
required int height,
}) async {
final result = await createVideoView(
videoId: videoId,
videoUrl: videoUrl,
width: width,
height: height,
);
if (result != null && result['success'] == true) {
return NativeVideoRenderer(videoId);
}
return null;
}