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) async {
_source = DeviceFileSource(path);
await creatingCompleter.future;
await _completePrepared(
() => _platform.setSourceUrl(playerId, path, isLocal: true),
);
}