[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
(2015-12-03, 11:34)JANGER Wrote: Great news! Thank you.

I use your scripts to send http messages which control the lights in my cinema. Depending on the content and event type, I change color brightness or the speed of dimming. (When the movie starts all lights are dimming smoothly for few seconds)

One more dream:
I would like to play THX trailer video prior to each movie starts.
I hate Cinema Experience (it does not work with all skins, and not start automatically).
I hate CinemaVision even more, it has too many feature.
We need just the one: play selected video prior to the movie start event.

Have you any idea?

You would need to call your script as a python script in the kodi namespace.
A brief outline of what you would do:

1) Subclass xbmc.player
2) Detect if a movie is playing using xbmc.getCondVisibility('VideoPlayer.Content(movies)') or by parsing the arguments by xbmc.callbacks2
3) Detect if you have a trailer to play and it's location
4) If so, store the name of the current playing file, stop playing, start playing trailer
5) Use xmbc.player onPlaybackEnded event to catch when the trailer is over and then restart the original file

Unfortunately, I don't have the time to write it out in code. Good luck!
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by KenV99 - 2015-12-04, 15:18
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4