mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 17:55:58 -07:00
feature: Video quality options (#234)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
957ad6c991
commit
935d6fe176
25 changed files with 644 additions and 232 deletions
|
|
@ -24,6 +24,12 @@ _$VideoPlayerSettingsModelImpl _$$VideoPlayerSettingsModelImplFromJson(
|
|||
nextVideoType:
|
||||
$enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ??
|
||||
AutoNextType.smart,
|
||||
maxHomeBitrate:
|
||||
$enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ??
|
||||
Bitrate.original,
|
||||
maxInternetBitrate:
|
||||
$enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ??
|
||||
Bitrate.original,
|
||||
audioDevice: json['audioDevice'] as String?,
|
||||
);
|
||||
|
||||
|
|
@ -41,6 +47,8 @@ Map<String, dynamic> _$$VideoPlayerSettingsModelImplToJson(
|
|||
?.map((e) => _$DeviceOrientationEnumMap[e]!)
|
||||
.toList(),
|
||||
'nextVideoType': _$AutoNextTypeEnumMap[instance.nextVideoType]!,
|
||||
'maxHomeBitrate': _$BitrateEnumMap[instance.maxHomeBitrate]!,
|
||||
'maxInternetBitrate': _$BitrateEnumMap[instance.maxInternetBitrate]!,
|
||||
'audioDevice': instance.audioDevice,
|
||||
};
|
||||
|
||||
|
|
@ -71,3 +79,22 @@ const _$AutoNextTypeEnumMap = {
|
|||
AutoNextType.smart: 'smart',
|
||||
AutoNextType.static: 'static',
|
||||
};
|
||||
|
||||
const _$BitrateEnumMap = {
|
||||
Bitrate.original: 'original',
|
||||
Bitrate.auto: 'auto',
|
||||
Bitrate.b120Mbps: 'b120Mbps',
|
||||
Bitrate.b80Mbps: 'b80Mbps',
|
||||
Bitrate.b60Mbps: 'b60Mbps',
|
||||
Bitrate.b40Mbps: 'b40Mbps',
|
||||
Bitrate.b20Mbps: 'b20Mbps',
|
||||
Bitrate.b15Mbps: 'b15Mbps',
|
||||
Bitrate.b10Mbps: 'b10Mbps',
|
||||
Bitrate.b8Mbps: 'b8Mbps',
|
||||
Bitrate.b6Mbps: 'b6Mbps',
|
||||
Bitrate.b4Mbps: 'b4Mbps',
|
||||
Bitrate.b3Mbps: 'b3Mbps',
|
||||
Bitrate.b1_5Mbps: 'b1_5Mbps',
|
||||
Bitrate.b420Kbps: 'b420Kbps',
|
||||
Bitrate.b720Kbps: 'b720Kbps',
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue