mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 09:20:31 -07:00
feature: Auto next-up preview, skip to next in queue. (#96)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
f72ae9e3ca
commit
66f2b6cd4e
13 changed files with 971 additions and 137 deletions
52
lib/models/settings/video_player_settings.g.dart
Normal file
52
lib/models/settings/video_player_settings.g.dart
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'video_player_settings.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$VideoPlayerSettingsModelImpl _$$VideoPlayerSettingsModelImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$VideoPlayerSettingsModelImpl(
|
||||
screenBrightness: (json['screenBrightness'] as num?)?.toDouble(),
|
||||
videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ??
|
||||
BoxFit.contain,
|
||||
fillScreen: json['fillScreen'] as bool? ?? false,
|
||||
hardwareAccel: json['hardwareAccel'] as bool? ?? true,
|
||||
useLibass: json['useLibass'] as bool? ?? false,
|
||||
internalVolume: (json['internalVolume'] as num?)?.toDouble() ?? 100,
|
||||
nextVideoType:
|
||||
$enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ??
|
||||
AutoNextType.static,
|
||||
audioDevice: json['audioDevice'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$VideoPlayerSettingsModelImplToJson(
|
||||
_$VideoPlayerSettingsModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'screenBrightness': instance.screenBrightness,
|
||||
'videoFit': _$BoxFitEnumMap[instance.videoFit]!,
|
||||
'fillScreen': instance.fillScreen,
|
||||
'hardwareAccel': instance.hardwareAccel,
|
||||
'useLibass': instance.useLibass,
|
||||
'internalVolume': instance.internalVolume,
|
||||
'nextVideoType': _$AutoNextTypeEnumMap[instance.nextVideoType]!,
|
||||
'audioDevice': instance.audioDevice,
|
||||
};
|
||||
|
||||
const _$BoxFitEnumMap = {
|
||||
BoxFit.fill: 'fill',
|
||||
BoxFit.contain: 'contain',
|
||||
BoxFit.cover: 'cover',
|
||||
BoxFit.fitWidth: 'fitWidth',
|
||||
BoxFit.fitHeight: 'fitHeight',
|
||||
BoxFit.none: 'none',
|
||||
BoxFit.scaleDown: 'scaleDown',
|
||||
};
|
||||
|
||||
const _$AutoNextTypeEnumMap = {
|
||||
AutoNextType.off: 'off',
|
||||
AutoNextType.smart: 'smart',
|
||||
AutoNextType.static: 'static',
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue