You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
playEvent is triggered twice and load() doesn't trigger playEvent.
I'm trying to keep track of the state of the player. But since when the video end I can't call any is_playing() nor playback_status() because I got an OMXPlayerDeadError.
So basically what I want is to use those callback to keep the state of the player so I don't stop the player when it's already dead for instance...
I'm using the load() function to play video instead of creating a new play(). Seems more convenient to me. So I guess it would be nice to fire an event with the load() function (could be a playEvent or a loadEvent) or maybe this behavior is by design and I'm missing the point of the load() function.
Still I can't find out why my playEvent is triggered twice...
Issue Report
Description
playEvent
is triggered twice andload()
doesn't triggerplayEvent
.I'm trying to keep track of the state of the player. But since when the video end I can't call any
is_playing()
norplayback_status()
because I got anOMXPlayerDeadError
.So basically what I want is to use those callback to keep the state of the player so I don't stop the player when it's already dead for instance...
I'm using the
load()
function to play video instead of creating a newplay()
. Seems more convenient to me. So I guess it would be nice to fire an event with theload(
) function (could be aplayEvent
or aloadEvent
) or maybe this behavior is by design and I'm missing the point of theload()
function.Still I can't find out why my
playEvent
is triggered twice...Problem reproduction
Code
Output
Environment details
python-omxplayer-wrapper
0.1.0
python
(python --version
)3.7.3
omxplayer
(omxplayer --version
)f543a0d
The text was updated successfully, but these errors were encountered: