-
Notifications
You must be signed in to change notification settings - Fork 893
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
feat: add speedup & down to sound player UI #1530
Conversation
Assalam mu alikum brother, i need speed up and speed down in quran andriod audio player please add in your software jazakallah |
@princeparacha58 I think now we have closed as |
let's keep it open, thinking to merge it but with guidelines on what max speed to set depending on the Qari's rate of recitation, since this remains the top requested feature. |
if will be merged @ahmedre I would spend today and rest of week on working on it. I really want to contribute and help Quran users. |
planning to merge it in sha' Allah - جزاكم الله خيراً for building it and really sorry for being quiet about it all this time (as you know, I was against this idea from earlier on, but after discussions and brother @mohamede1945's idea to keep things beneficial, and it being the top feature request), planning on seeing this through in sha' Allah. |
No problem my brother, so I think we can make make 1.5(as max to all recitation) until we get a comprehensive solution to be related to Quran recitation type, do you agree @ahmedre ? I follow rule said |
Sure, that sounds reasonable. Cc @mohamede1945 fyi |
# Conflicts: # app/src/main/java/com/quran/labs/androidquran/service/AudioService.java # app/src/main/java/com/quran/labs/androidquran/view/AudioStatusBar.java
@ahmedre I have pushed the changes. please check |
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.
overall looks good, جزاكم الله خيراً
a few minor things:
- we probably should have some pre-sets instead (ex 0.5x, 0.75x, 1x, 1.25x, 1.5x) instead of a dynamic increase/decrease.
- if this only works on M+, let's not show the ui components for versions less than M
@ahmedre these pre sets will be in code only or will reflect in UI. |
we'd need to reflect in the UI also. for the audio bar, we can do the same as repeat (if you tap the repeat icon, the number cycles there between the valid repeat amounts). then, we can also expose a similar layout to repeat in the settings bottom sheet. |
|
Sounds great. Jazak Allah Khyran. And thanks brother @MahmoudMabrok for implementing it. BTW, Here is the list that the quran.com website shows. I think this PR will be just for [0.5, 0.75, 1, 1.25, 1.5], right? |
|
جزاكم الله خيراً |
|
I tried to add to |
Also add the wiring to allow for exposing a speed setting in the audio playback panel.
@MahmoudMabrok I've fixed some issues (including when we transition suras, the playback speed is now properly maintained). I still see two things before we can merge this:
I think the first is caused by our audio check being at 1x - we need to run this more (or less) frequently to fix. the second one just needs to be done. just updating you so you know. |
|
The audio service continuously sends events checking the playback status every few seconds, depending on how much time is left until the end of the ayah. These update timings need to now factor in the speed, so if we are 3 seconds away from the end of the ayah and are playing at 1.5x, for example, checking after 3 seconds is too late (since we would have played some of the next ayah).
|
|
aforementioned changes made al7amdulillah. |
Thanks so much for your efforts and merge. |
implement the feature at #1529