startVLCPlayer method

  1. @override
Future<bool?> startVLCPlayer({
  1. required String file,
  2. required String mimeType,
  3. required String title,
})
override

Starts the VLC player with the provided parameters.

Returns true if the VLC player was successfully launched, false otherwise.

Throws an UnimplementedError if the platform-specific implementation doesn't override this method.

Implementation

@override
Future<bool?> startVLCPlayer({
  required String file,
  required String mimeType,
  required String title,
}) async {
  final success = await methodChannel.invokeMethod<bool>('startVLCPlayer', {
    'file': file,
    'mimeType': mimeType,
    'title': title,
  });
  return success;
}