loadVideo method
Initializes video based on configuration.
Invoke actions which need to be run on player start.
Pass videoPath
for local files, or videoUrl
for files from network.
Local files supports only Android
Implementation
Future<void> loadVideo({String? videoUrl, String? videoPath}) async {
assert(
videoUrl != null || videoPath != null,
'Should provide videoPath or videoUrl',
);
final params = {'videoUrl': videoUrl, 'videoPath': videoPath};
await _channel.invokeMethod('loadVideo', params);
}