load method
Loads media into the player.
playerId: The unique ID of the player.mediaId: The ID of the media to load.typeOfPlayer: The type of player ("Single" or "Playlist").viewId: The ID of the view where the player will be rendered.
Implementation
Future<void> load({
required int playerId,
required int mediaId,
required String typeOfPlayer,
required int viewId,
}) async {
await TargetvideoFlutterPluginPlatform.instance.load(
playerId,
mediaId,
typeOfPlayer,
_controlAutoplay,
_scrollOnAd,
_creditsLabelColor,
_setCornerRadius,
_localization,
_doubleTapSeek,
_seekPreview,
viewId,
playerReference,
);
}