setSourceDeviceFile method
Sets the URL to a file in the users device.
The resources will start being fetched or buffered as soon as you call this method.
Implementation
Future<void> setSourceDeviceFile(String path, {String? mimeType}) async {
_source = DeviceFileSource(path, mimeType: mimeType);
await _completePrepared(
() => _platform.setSourceUrl(
playerId,
path,
isLocal: true,
mimeType: mimeType,
),
);
}