We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Tracy, when we activate "FormatDescription DisplayCriteria", Dolby Vision content is played as HDR10. (Tested on tvOS 17.1)
The text was updated successfully, but these errors were encountered:
#633
Sorry, something went wrong.
@Alanko5 So you mean that only using this code would solve the problem?
override func updateVideo(refreshRate: Float, isDovi: Bool, formatDescription: CMFormatDescription?) { #if os(tvOS) || os(xrOS) guard let displayManager = UIApplication.shared.windows.first?.avDisplayManager, displayManager.isDisplayCriteriaMatchingEnabled, !displayManager.isDisplayModeSwitchInProgress else { return } if let formatDescription { if KSOptions.displayCriteriaFormatDescriptionEnabled, #available(tvOS 17.0, *) { displayManager.preferredDisplayCriteria = AVDisplayCriteria(refreshRate: refreshRate, formatDescription: formatDescription) } else { let dynamicRange = isDovi ? .dolbyVision : formatDescription.dynamicRange displayManager.preferredDisplayCriteria = AVDisplayCriteria(refreshRate: refreshRate, videoDynamicRange: dynamicRange.rawValue) } } #endif }
Yes you need add bridging header for objc file header. https://github.com/kingslay/KSPlayer/blob/119f75a6251ac0807b9a529e8ef335c1033ba4ab/Demo/SwiftUI/Shared/AVDisplayCriteriaKS.h
No branches or pull requests
On Tracy, when we activate "FormatDescription DisplayCriteria", Dolby Vision content is played as HDR10.
(Tested on tvOS 17.1)
The text was updated successfully, but these errors were encountered: