Playback events
#1
Hi,

I'm looking for on how to get playback events and particularly when playback or current song is finished...

For the playback end, I think the
Code:
GUI_MSG_PLAYBACK_ENDED
could help me but I don't know how to handle these messageHuh

For current song perhaps
Code:
m_decoder[m_currentDecoder].GetStatus() == STATUS_ENDED
...

Is there less complicated solutions to handle playback events and how to wait for those events and do something when they happenedHuh
Reply
#2
I suggest reacting to the GUI_MSG_PLAYBACK_ENDED would be the way to go.

It depends where you want to be able to react to the message as to how you'd go about implementing it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
I want to implement a new builtin "ShutdownAfter" feature which can take this two parameters : playback or playing in order to shutdown XBMC after the current playing or once the playlist has finished (playback).

For the last one, effectively I think the best is to add some code in the OnMessage function in Application.cpp but this way make me add some variables and I don't like this idea. I would like to keep the message directly in the Utils.cpp file.

And for the first one, why not to create a new message, GUI_MSG_PLAYING_ENDED Huh
Reply

Logout Mark Read Team Forum Stats Members Help
Playback events0