setSourceDeviceFile method

Future<void> setSourceDeviceFile(
  1. String path
)

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