-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Playback speed controls #390
Conversation
Could you add a gif or screenshot on how it works? Also duplicate of #367 |
Thank you so much @kono0514 for your work 👍🏼. This PR is much more fast forward and I think we can work with it :). I've checked our your branch and tested everything here: I encountered following points:
Youtube WebYoutube MobileAs you can see on mobile devices the vertical_more IconButton is used for showing the video settings on the top right corner. Regarding the checks wether we're on mobile or not, I would rather stick to screen size then to TargetPlatform or Platform.isAndroid. You can try LayoutBuilder or other ways to differentiate :). If we can have this is chewie this would be awesome 👏 |
Ah yes and I am missing the "Cancel" Button on the bottom for the MaterialBottomSheet (on Cupertino it exists already): And we should also be able to localize such labels like "Normal" and "Cancel". The best thing would be maybe to just give a parameter like for playback's "Normal" and "Cancel" buttons. But maybe you guys got a better idea here (@nstrelow) |
https://material.io/components/sheets-bottom A sheet should be dismissable by (I think) swiping down or clicking above the sheet>> https://developer.apple.com/design/human-interface-guidelines/ios/views/action-sheets/
I do not think we need an explicit Cancel button. A confused user would probably just press normal or try to dismiss it. Example for needing a cancel button: User presses delete by mistake -> cancel gives certainty nothing was deleted. About translation |
Brilliant! You solved all my headache @nstrelow 😂 Ok so again my updated thoughts:
🧐 🤔 These are my thoughts here to stay as cross-platform as we can. Thanks also for all of your inputs! |
What we should do is provide a sane default player controls with great functionality and UI out of the box. Then leave the rest for the user to modify using That's my two cents. What do you guys think? |
Exactly! That was what I was searching for chewie: add this speed functionality now and provide in future a I already implemented in the past YouTube-like controls, I'll create a PR for that, so it comes out of the box. Ok, but for now for this PR: LGTM, if you just improve the section which I've commented in your code 👍🏼 great job @kono0514 . @nstrelow do you agree on the plan? |
Yup, agree. |
There is also one small bug in Material. Workaround for that bug involves passing the main context to Until the official fix lands, should I implement the workaround or just wait? |
@kono0514 It's better to wait for the official fix, but it seems that the fix already landed and merged :) so all Master-Channels got it. Regarding the change requests: it's fine! Then the concrete implementation stays and I saw you already changed the SingleChildScrollView and Wraps 👍🏼 good job builder methods are always faster 👍🏼 LGTM now |
@kono0514 I encountered that you've forked and got a separate implementation for video_player...that's not good: Because we actually can't use your implementation here... It would be good to have such speed functionality in video_player, but until then we can't use this in chewie @nstrelow |
I think you're on an old version of video_player. |
Maybe you're right! I'll check that! |
Just wanted to mention this: thank you so much for using the (context) I created the PR on |
@Ahmadre We probably need to set the minimum supported version of video_player to 0.11 Nice that this landed 😁 |
Hi @Ahmadre, It will be very helpful and will look more consistent if you do 1.0 as Normal in android & 1.0 is iOS. Let us know if this is supported in any coming version. Thanks in advance for this awesome plugin. |
Controls for both Android & iOS.
Introduces:
allowPlaybackSpeedChanging
andplaybackSpeeds
toChewieController