Forum
Stop movie playback automatically - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Kodi (/forum-18.html)
+--- Thread: Stop movie playback automatically (/thread-187.html)



Stop movie playback automatically - namtih - 4th Jan, 2013 09:16 PM

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>
...



RE: Stop movie playback automatically - raspberry_pd - 7th Jan, 2013 04:29 AM

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.


RE: Stop movie playback automatically - Koenkk - 13th Feb, 2013 08:08 AM

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.


RE: Stop movie playback automatically - CurlyMo - 13th Feb, 2013 08:36 AM

Even better, do a pull request.


Re: Stop movie playback automatically - BartOtten - 13th Feb, 2013 08:01 PM

Namtih, you are truly a big help for XBian! Superb!


Stop movie playback automatically - Koenkk - 13th Feb, 2013 08:59 PM

A pull request would be better indeed, if you need help, please ask us!Smile


RE: Stop movie playback automatically - coreflake - 18th Feb, 2013 03:42 AM

i can't find the confluence folder (default skin).
is it also in the addons folder ?


RE: Stop movie playback automatically - CurlyMo - 18th Feb, 2013 04:56 AM

Code:
/usr/local/share/xbmc/addons/skin.confluence/