Kodi Community Forum

Full Version: How to call XBMC.ShutDown() internally without onclick event on back-row skin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I have integrated XBMC with another application, When we stop playing video file in XBMC or its completed, then it should automatically shout down the XBMC go to that application.

When we stop playing video files in XBMC it should internally call XBMC.ShutDown() without on click event.

Anyone can please help on this.

Advanced Thanks!!

Thanks & Regards
Amaresh.
It can be done, but XBMC wasn't designed to be used this way so it's a bit messy. You would have to write a service add-on that received player notifications and have it execute a shutdown when it receives the playback stopped notification.

To be honest you would be better off using VLC or (on Windows) MPC-HC rather than XBMC. These apps are designed to be used in the way you want.
If it were me...I would use an outside code to make windows send Alt+F4...It would be fairly simple to do in any coding language, and probably the most elegant solution.