Forum

Full Version: Stop movie playback automatically
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The standard behaviour of XBMC is that the movie keeps playing when you leave the full screen mode and enter the menus. You can disable that the movie is displayed in the background, but then it still keeps playing and you hear the audio.
Unfortunately it's not very smooth and very annoying.

Two work-arounds:
1. You first press P to pause the movie and then go back to the menus.
2. You press X to stop the movie.

My final method:
http://forum.xbmc.org/showthread.php?tid=133863&pid=1131804
1. Open "/home/xbian/.xbmc/addons/<your skin folder>/1080p or 720p"
2. Open "VideoFullScreen.xml"
3. Insert the following code in the second line:
Code:
<onunload condition="!Player.Paused">PlayerControl(Play)</onunload>
4. Save it and restart XBMC

When you now leave the fullscreen mode via the backspace button, the movie will pause automatically and you will not have any stuttering in the background.


Example:
/home/xbian/.xbmc/addons/skin.realaskadark.0.9.6.git/720p/VideoFullScreen.xml
Code:
<window id="2005">
<onunload condition="!Player.Paused">PlayerControl(Play)</onunload>
    <defaultcontrol>-</defaultcontrol>
    <controls>
...
nice one namtih. I would vote for this or something very similar to be included in XBian by default because I had a very messy experience whereby I tried clicking the mysterious X in the top right of the full screen video overlay. In doing so I go into very strange modes that were far from friendly.

I'd go so far as to suggest that XBian should only use either full-screen video mode, or menu mode. None of the mixed modes that appear to be rarely/randomly accessible. This would me it much more like the simple behaviour expected of an appliance or embedded, dedicated software solution. At present, XBMC can still behave like it is running in a desktop environment where users may want to unmaximise it. I think. That is not a use case that matches what XBian is trying to achieve AFAIK.
Very good idea, somehow I did not notice this thread. We will take a serious look at it! https://github.com/xbianonpi/xbian/issues/274 .

P.S. next time you have such a nice idea, feel free to open an issue on our git.
Even better, do a pull request.
Namtih, you are truly a big help for XBian! Superb!
A pull request would be better indeed, if you need help, please ask us!Smile
i can't find the confluence folder (default skin).
is it also in the addons folder ?
Code:
/usr/local/share/xbmc/addons/skin.confluence/
Reference URL's