XilinJia / Podcini

Open source podcast player for Android in Kotlin with androidx.media3
GNU General Public License v3.0
109 stars 5 forks source link

Issues with Playing from Notification/ Bluetooth/Widget #43

Open ghost opened 1 month ago

ghost commented 1 month ago

Checklist

App version

4.9.6

Where did you get the app from

Google Play

Android version

14

Device model

Pixel 7 Pro

First occurred

No response

Steps to reproduce

(1) Play/resume podcast from either Bluetooth or from a notification or from a homescreen widget (2) Open the app

Expected behaviour

The app should show the same playing status and podcast position. AND Pressing the forward/back button should have the effect chosen in Settings -> Playback AND Upon pause the podcast position should be saved in the app

Current behaviour

The app shows no podcast is playing AND Hardware forward button always skips episode, back button always restarts it. Chosen settings for Rewind/Fast forward settings are not honoured. AND Upon going back to the app, resuming playback results in weird behaviour. Sometimes the podcasts resumes from the position paused from the previous playback, other times it resumes from the position shown in the app, regardless of where it was actually last paused.

Possibly related to #37

Logs

No response

XilinJia commented 1 month ago

The mismatch of play/pause button is fixed in the next release.

The hardware rewind and forward buttons might be tied to the two buttons next to play/pause. Currently there is something strange with the positioning of the buttons as I described in the related issue. Will need further investigation.

If you play/resume/rewind/forward an episode from the notification and come to the app, the position is not updated in your version. This relates to the mismatch of play/pause button issue and is fixed in the coming release. Actually before the fix, if you press the play/pause button on the player to get it in sync with the play status, the position is set correctly. BTW, Podicini is only updates positions every 5 second to conserve energy.

rrd1 commented 1 month ago

I can confirm that rewind/forward is not working as expected when triggered via Bluetooth device. Tried headphones (Goggle Pixel Buds Pro) and car audio. Same functionality works fine with same devices but original Antennapod.

Phone: Pixel 7, Android 14 Forward (30s) expected, nothing happens when triggered via BT Backward (10s) expected, restarts the episode from beginning when triggered via BT

Let me know if you need further information to investigate the issue.

XilinJia commented 1 month ago

I see Android Auto shows a black screen, will check about that shortly.

On bluetooth buttons, did anyone try changing the settings of "Forward button" and "Previous button" in Playback of Settings?

If that doesn't do anything, I would make a test version, would anyone test a it (a debug app not affecting your normal install)?

XilinJia commented 1 month ago

The buttons issue should have been fixed in 5.4.1. let me know.

rrd1 commented 1 month ago

Thanks a lot for your fast reaction, really appreciated! Forward and rewind works now for me with both BT devices. Thanks a lot again!

XilinJia commented 1 month ago

Glad it works out well. Cheers