PLAYER_STOP doesn't stop and end the playback
Closed this issue · 8 comments
Should I provide some example code for reproducing this kind of behavior?
The expected behaviour would be nice. Right now I'm planning to trigger the native stop event. This will move the playtime to the end.
https://github.com/DominicWrege/podlove-webplayer-stop-bug
The expected behaviour would be that the player basically stops what it is currently playing.
Hmm ok did you try PLAYER_REQUEST_PAUSE
? Maybe that already matches your requirements.
Yes but this is only a temporary solution.
Why would it be temporary? I did some research and there isn't a native stop event in the html5 audio stack. So pause
should be fine.
I did some research and there isn't a native stop event in the html5 audio stack
Good Point.
I its only temporary because I don't want to pause the playback.
It should stop/pause the playback and sets the current playback time to 0 or the beginning.
podlove-ui/packages/player/actions/types.js
Line 141 in 1e98567
So than I don't understand the purpose that line.
The new Media Session API has defined a stop behaviour.
stop: the action’s intent is to stop the playback and clear the state if appropriate.
That behaviour I would expect to happen.