valbok / QtAVPlayer

Free and open-source Qt Media Player library based on FFmpeg, for Linux, Windows, macOS, iOS and Android.
MIT License
282 stars 54 forks source link

BUG - Função Stop #474

Closed mxnt10 closed 3 months ago

mxnt10 commented 3 months ago

A função stop não está parando a reprodução, está pausando a reprodulção.

Ao apertar stop eu presumo que ele deveria emitir o QAVPlayer::EndOfMedia e não emite.

Mas nesse caso, ao apertar o botão stop eu prefiro um QAVPlayer::MediaStop que pra mim ficaria melhor.

valbok commented 3 months ago

Hi, thanks for contribution! stop() is made based on legacy from QMediaPlayer and many others, where it did not reset and or change the source. So it just stops the playback, but does not close decoders, or seeks to end. Opposite pause() which is supposed to send only one frame, stop() just stops without sending any frames. But emits also StoppedState, but not EndOfMedia because it did not reach the end.

mxnt10 commented 3 months ago

vou ver o que eu posso fazer com o StoppedState