How to detect if playback has failed ?
#1
Hi,

I'd like to detect in my python script that a playback of a stream or a movie has failed (file not found, stream not available, ...).
The only thing I have is the onPlaybackStopped() callback, but I can't make the difference with a gook playback.
I also see in the xbmc.log :
Quote:13:02:34 T:3848 M:800530432 NOTICE: DVDPlayer: Opening: udp://230.1.1.1:1234
13:02:34 T:3848 M:800497664 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
13:02:34 T:4664 M:800440320 NOTICE: Creating InputStream
13:02:34 T:4664 M:800436224 NOTICE: Creating Demuxer
13:02:36 T:4664 M:793419776 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
13:02:36 T:4664 M:793444352 NOTICE: CDVDPlayer::OnExit()
13:02:36 T:4664 M:793448448 NOTICE: CDVDPlayer::OnExit() deleting input stream
13:02:36 T:6024 M:793436160 NOTICE: <onPlayBackStopped>
13:02:36 T:6024 M:793432064 NOTICE:
13:02:36 T:3848 M:793534464 NOTICE: CDVDPlayer::CloseFile()
13:02:36 T:3848 M:793534464 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
13:02:36 T:3848 M:793534464 NOTICE: DVDPlayer: waiting for threads to exit
13:02:36 T:3848 M:793534464 NOTICE: DVDPlayer: finished waiting

Any idea ?
Reply
#2
uhm, wouldn't no OnPlaybackStarted() indicate the error?
Reply

Logout Mark Read Team Forum Stats Members Help
How to detect if playback has failed ?0