-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
Player won't resize on iOS when using Metal #3
Comments
try following code override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
metalLayer.frame = view.bounds
metalLayer.contentsGravity = .resizeAspect
} |
The code did work and the view does fill the screen, however the metal layer's resolution never changed. I would prefer the resolution of the metal layer to be correct so that subtitles are rendered properly. You can see in the clip below that the resolution of the metal layer never changed RPReplay_Final1712320506.MP4 |
You may have a look the plex fix the sizing issue on moltenvk . It seems they have a solution to fix the problem. But I could not make it work. |
After quite a bit of trial and error -- and trying the plex fork of mpv -- I don't believe it's currently possible. It doesn't seem like anything that Plex has published so far has had fully working moltenvk resizing... I've tried multiple commits, but nothing appears to work :/ |
Nope, I just ended up using openGL for iOS/macOS and then only using metal on tvOS as it's unlikely for a tv to resize. |
Hey there,
I've been playing with the demo projects provided, but I don't seem to be able to get MPV to detect the metal layer resizing...
I've added the following to
MPVMetalViewController
I can see with the performance overlay that the metal layer has resized, however, the video content isn't modified.
Is there any way to get resizing to work with libmpv on iOS?
The text was updated successfully, but these errors were encountered: