load method
Future<void>
load(
- int playerId,
- int mediaId,
- String typeOfPlayer,
- bool? controlAutoplay,
- bool? scrollOnAd,
- String? creditsLabelColor,
- int? setCornerRadius,
- String? localization,
- int? doubleTapSeek,
- int? seekPreview,
- int viewId,
- String playerReference,
override
Implementation
@override
Future<void> load(
int playerId,
int mediaId,
String typeOfPlayer,
bool? controlAutoplay,
bool? scrollOnAd,
String? creditsLabelColor,
int? setCornerRadius,
String? localization,
int? doubleTapSeek,
int? seekPreview,
int viewId,
String playerReference) async {
try {
await methodChannel.invokeMethod('load', {
'playerId': playerId,
'mediaId': mediaId,
'typeOfPlayer': typeOfPlayer,
'controlAutoplay': controlAutoplay,
'scrollOnAd': scrollOnAd,
'creditsLabelColor': creditsLabelColor,
'setCornerRadius': setCornerRadius,
'localization': localization,
'doubleTapSeek': doubleTapSeek,
'seekPreview': seekPreview,
'viewId': viewId,
'playerReference': playerReference,
});
} on PlatformException catch (e) {
debugPrint('Failed to load video: ${e.message}');
rethrow;
}
}