-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Seekbar controls feature #59
Seekbar controls feature #59
Conversation
[+] Install unmet peer deps [+] babel/core, babel preset env, types rn 0.63.17
[+] Remove types/react-native
Hey @esegebart ! I'm looking into it right now and I think we will need to replace TouchableHighlight the Pressable API from React Native. I suggest that if you keep the rewind button pressed, the rewinding time should increase. I believe this requires quite some work in order to pull it off and try not to introduce breaking changes. Perhaps we won't need I'll try to adjust this PR or open a new one, but I can't promise we'll finish it this weekend. |
@esegebart I had even a better look, I was almost done finishing it, but I think we have a issue with the What I tried implementing is the following:
According to the Pressable API, the I believe we need to provide a reproduction repository to the react-native-tvos maintainers (I'm already working on one here) and only then we can finish this issue since we heavily rely on this (I believe this can be easily implemented on mobile, but not on tvOS). I'm so sorry if you needed this very fast. This actually is an exciting feature and I do believe it's also useful for mobile. Thank you for your time and effort for this! |
@esegebart Wow that's amazing! If we don't need TV event handler, that's even better and would be super useful for mobile and TV. :) Woohoo! I have other things I can work on while we figure this out too so no worries on the time, we can't help it if it takes a little time. Is there anything I can try and do to help with the reproduction repo or anything? :) I will take a look at everything tomorrow! |
@esegebart Well, that's the thing 😥, I don't want to ruin your excitement but we will definitely need the TV event handler. The problem is how the TV event handler triggers the So basically, you can have a button pressed for 5 minutes, you will only know it was a long press AFTER the user releases the button and that prevents you from actually doing something WHILE the user is pressing the button for a longer time. |
@LunatiqueCoder Good news! Doug from tvOS repo said this: The next point release (0.69.6-4) will have this fix that makes longSelect, longLeft, etc., behave correctly and begin firing events while the button is still pressed, instead of waiting for the button to be released. react-native-tvos/react-native-tvos#468 Woohoo!!! |
@esegebart That’s actually very good news! Looking forward to implement this |
[+] Would like to add progress indicators 1x 2x 3x etc [+] Need to change the first press to just jump forward 15 sec once
[+] Clean up console logs [+] Add button controls for skips [+] Add images for skip button
[+] Code Clean up
[+] REWIND ONLY
[+] This will calculate the proper percentages of the video to skip at different intervals: 1st press is default rewind time, 2nd press is 1%, 3rd press is 3%, and 4th press is 5%.