setFileDataSource method
Set data source for playing a video from a file.
This will load the file from the file-URI given by:
'file://${file.path}'
.
Implementation
Future<void> setFileDataSource(File file,
{bool? showNotification,
String? title,
String? author,
String? imageUrl,
String? notificationChannelName,
Duration? overriddenDuration,
String? activityName,
String? clearKey}) {
return _setDataSource(
DataSource(
sourceType: DataSourceType.file,
uri: 'file://${file.path}',
showNotification: showNotification,
title: title,
author: author,
imageUrl: imageUrl,
notificationChannelName: notificationChannelName,
overriddenDuration: overriddenDuration,
activityName: activityName,
clearKey: clearKey),
);
}