BetterPlayerDataSource.memory constructor
BetterPlayerDataSource.memory(
- List<
int> bytes, { - String? videoExtension,
- List<
BetterPlayerSubtitlesSource> ? subtitles, - bool? useAsmsSubtitles,
- bool? useAsmsTracks,
- Map<
String, String> ? qualities, - BetterPlayerCacheConfiguration? cacheConfiguration,
- BetterPlayerNotificationConfiguration? notificationConfiguration,
- Duration? overriddenDuration,
- Widget? placeholder,
Factory method to build network data source which uses bytes as data source. Url parameter is not used in this data source.
Implementation
factory BetterPlayerDataSource.memory(
List<int> bytes, {
String? videoExtension,
List<BetterPlayerSubtitlesSource>? subtitles,
bool? useAsmsSubtitles,
bool? useAsmsTracks,
Map<String, String>? qualities,
BetterPlayerCacheConfiguration? cacheConfiguration,
BetterPlayerNotificationConfiguration? notificationConfiguration,
Duration? overriddenDuration,
Widget? placeholder,
}) {
return BetterPlayerDataSource(
BetterPlayerDataSourceType.memory,
"",
videoExtension: videoExtension,
bytes: bytes,
subtitles: subtitles,
useAsmsSubtitles: useAsmsSubtitles,
useAsmsTracks: useAsmsTracks,
resolutions: qualities,
cacheConfiguration: cacheConfiguration,
notificationConfiguration: notificationConfiguration =
const BetterPlayerNotificationConfiguration(showNotification: false),
overriddenDuration: overriddenDuration,
placeholder: placeholder,
);
}