-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Add audio, subtitle, playback select for tvOS #859
Conversation
83d05a8
to
29b3e04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this. The playback speed being pulled into the manager is great as it is related to #711, but I haven't made a good mechanism for having values "transfer" between different media items.
I see that the small overlay was expanded to fill the entire screen, which we don't want, but I'm fine with for now to fix later. I'm fine with the circles on the buttons, but I may change that later on.
Per the "lmk if we want this" comments:
1 - keep the playbackSpeed
as the PlaybackSpeed
type
2 - I'm always for some cleanliness, so I'm welcome to that.
In fact, I think that the entire overlay on tvOS needs a redesign, both in terms of design itself and implementation. I've just had to deal with SwiftUI and its lack of support on tvOS and I don't think it's the prettiest thing in the world. /rant
Swiftfin/Views/VideoPlayer/Overlays/Components/ActionButtons/PlaybackSpeedActionButton.swift
Show resolved
Hide resolved
29b3e04
to
47c77ab
Compare
47c77ab
to
0baa1eb
Compare
Just noticed the "Small" in "SmallMenuOverlay", haha. For the circles on the buttons, I added it because changing from Seeing as the playback slider is completely broken on tvOS among the other design issues, I'd be happy to see a rework on tvOS and help implement it. If you have mocks or even a detailed enough description of design goals, I'd love to incrementally work on it over the next while. We can discuss more on element |
This menu seems to have broken in tvos 17 and later, still works fine when run in tvos 15.4 simulator |
Yeah, it seems like tvOS 17+ broke the whole overlay menu stuff in general, even before this commit. I'll see if there are any bandages I can come up with quickly, but we had been discussing revamping the overlay anyhow so this might get pushed until then Edit: Ok so it turns out this line was the culprit. For some unholy reason, before tvOS 17, |
Purpose
Changes
playbackSpeed
property intoVideoPlayerManager
to keep consistency with audio and subtitle propertyTesting
playbackSpeed
move didn't break anythingSmallMenuOverlay
because chapter selection already exists outside of that menuiOS playback speed works
Notes
While working on the fix, I noticed:
VideoPlayerManager
, so opening the selection menu shows that no audio/subtitle track is selected until manual selectionOpening the— fixed in this PR nowSmallMenuOverlay
for the first time makes the defaultText("None")
button becauselastFocusedSection
is not set by defaultDo we want these problems fixed in this PR?
TODO
(Maybe) change— lmk if we want this.playbackSpeed
inVideoPlayerManager
toFloat
in case we ever want to apply a nonstandard speed(Maybe) refactor out shared code among the selection menus in— lmk if we want thisSmallMenuOverlay