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
Native video player support #69
Conversation
…haviour for video row element.
@Adelenade Thanks a lot for the PR! Feel free to take a look at my review 😊 |
You can also remove the StatusBarIcon file from assets, since we'll be using the better looking menu icon! |
For the aspect ratio: I commented in And for the stop playing, it's simply because i didn't modified the command+w code lol, only the button's one :'D and yep i'm removing it |
.frame(width: hovered ? 64 : 128, height: hovered ? 36 : 72) | ||
.cornerRadius(5) | ||
.shadow(radius: 6, x: 2) | ||
// ...and move it a bit on the left to avoid looking weird. |
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.
I'm curious why the thumbnail was resized instead of "hiding" it.
Wouldn't the ability to see more title be better?
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.
Infact, i found that having the thumbnail disappearing when you hover was really weird, so i tried to make it smaller instead. I havent seen any video title that wasn't displayed entirely on hover so i kept it like that
Also, as thumbnails in Youtube are really important, i feel like you should be able to click on the thumbnail to play the video, and not having it disappear right when you wanna click on it :0
I'm sorry if i'm unclear but yeah.. i really feel like it's frustrating to not being able to catch the thumbnail with the mouse LOL (but ofc it's a design choice so i understand if you prefer hiding it :3)
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.
😅 definitely a design choice!
Since we can see the thumbnails before we hover on the video I think it's safe to hide them!
Ideally we'd animate the thumbnail YouTube style so it shows the preview of the video but I'll need to take a look at YouTube api for that!
Let's slide them out for now.
I'll consider adding a themes tab on settings so users can toggle between them and maybe even customize the app a little bit!
Good news: i found a way to keep aspect ratio, it's simply a .aspectRatio modifier on the view :'D |
you didn't push this work around right....? |
Loving the new video player! It's already started to grow on me! I'm re-writing the floating tab extension so it'll be easier to work with in future. |
Glad you like it ! Oh you mean re-writing the picture-in-picture-like window stuff ? :0 And by the way, have you ever tried to add a log-in with google account to the app ? Or is it too complicated ? (i don't really know the YouTube Api but idk why it would be impossible :0) |
Quickly corrected a bug where the archived .app was crashing when playing a video (just needed to add AVKit.framework) |
I've experimented with authentication it's quite simple to implement (using googled SDKs)
Since we won't be showing subscription feed or user specific feed, having an api key should be fine! I think at most, I'll make a new how to get YouTube api key video. |
@Adelenade There's a weird flicker when using non-native video player. CleanShot.2022-12-23.at.16.18.22.mp4Update: I'm getting rid of the player altogether! |
Heyoooo ! Another pull request loool
This time, i focused on adding a native player to the app, to allow not using the YouTube player that can sometimes be weird without needing IINA !
Here is what I did in detail:
videoClickBehaviour
setting, to let the user customise the action performed on double clicking on a video row & made the corresponding GeneralSettingsView picker.useNativePlayer
setting for the user to choose between youtube player and native one.ToDo / ways to improve :
If you want to wait before merging, i'm going to work on the things listed above :3