Extend available streams formats list to AVPlayer

This commit is contained in:
Arkadiusz Fal
2022-08-22 19:03:49 +02:00
parent 426cf8e328
commit f9df2692fb
3 changed files with 12 additions and 7 deletions

View File

@@ -268,7 +268,7 @@ struct QualityProfileForm: View {
func isFormatDisabled(_ format: QualityProfile.Format) -> Bool {
guard backend == .appleAVPlayer else { return false }
let avPlayerFormats = [QualityProfile.Format.hls, .stream]
let avPlayerFormats = [QualityProfile.Format.hls, .stream, .mp4]
return !avPlayerFormats.contains(format)
}
@@ -276,7 +276,7 @@ struct QualityProfileForm: View {
func isResolutionDisabled(_ resolution: ResolutionSetting) -> Bool {
guard backend == .appleAVPlayer else { return false }
return resolution.value.height > 720
return resolution.value > .hd720p30
}
func initializeForm() {