-
-
Notifications
You must be signed in to change notification settings - Fork 128
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 scrub function to audio trickplay bar #1622
Conversation
General UX Feedback :
|
I did a quick test and from what I saw songs I played skipped to spots correctly and the time seemed to be reported correctly. I didn't seem to be able to skip past the end of any of the songs I tried. In fact, it seems that I can skip only to two seconds prior to the end of the track, which seems like a safe place to stop and let playback complete. I will test more later. |
In the updated version, if the trickplay bar is in focus, but you haven't scrubbed, the Play/Pause button works on normal. If you do scrub, the button seeks audio to the new location.
I originally had this, but Roku being Roku, it only triggered the button 3 times then quit. I'll keep looking into it, but for now this is they best I've got. |
|
@michaelcresswell I tested dozens of my music files and I can't recreate this issue. Can you share one of the trouble files with me? |
Any mp3 I’ve purchased from Amazon does it for me. I tried trimming down to a sample size but I don’t see the issue with any of the samples I created. I’m not keen on sharing copyrighted material in its entirety. Seeking for these files works as expected in the web client, iOS (expo), and Finamp so it seems like something odd is going on with Roku but I can’t identify the cause. I’m okay with moving this to a bug and seeing if anyone else reports similar behavior. The rest of my library seeks properly, for what it’s worth. |
Cool. I've got a ton of Amazon songs. I'll dl them and see what I can recreate. |
I was able to recreate some strangeness using an Amazon MP3 file on Roku. I then tested the file in other players, and using Windows Media Player I skipped to the last second of the song and it locked up the program. I then tried it again and ended up with a popup from Windows Media Player saying the file was encoded with unsupported encoding settings. It seems Amazon may be doing something non-standard with their files. |
I tested the file in Roku Media Player and it also had many issues. It had trouble getting the correct song length, it attempted to seek past the end, it attempted to play past the end of the file. In my mind, that means it's an issue playing the file itself and not the code in the PR. Yes, open a bug with this info and make note it's an Amazon sourced MP3 file. |
Awesome that you were able to reproduce the problem. I beginning to think the problem was on my end. I made #1629 to capture the playback issue discussion. |
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 approving this as it works with "known issues" (that may or may not be resolvable). And having this feature outweighs the issue in my opinion.
Changes
Adds scrub ability to audio player. Users can press up from the buttons on the audio player view to focus the trickplay bar and using left/right on their remote, seek through the audio and select a new timestamp.
Notes:
When scrubbing, audio will pause.
After scrubbing, the audio must rebuffer, so we show a loading spinner until audio is ready for playback.
Demo
https://social.linux.pizza/@tgpo/111712110018347240