[Windows] [Solved] Is it possible to pause playback when exiting fullscreen? - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: [Windows] [Solved] Is it possible to pause playback when exiting fullscreen? (/showthread.php?tid=139509)
[Solved] Is it possible to pause playback when exiting fullscreen? - NobodyHere - 2012-09-01 06:52
Hi. I'm looking for way to do something pretty simple, but have no idea how to.
I'm running XBMC with it's default skin Confluence, and have been trying to memorize the default keyboard shortcuts. When I press ESC while in full screen, it takes me back to the "Now Playing" menu where I had launched the video.
What I'd like XBMC to do is instead of continuing to play the video in the background, I'd like it to pause after hitting ESC to leave full-screen mode. Is this possible?
I'd note that I still want the videos visible as the "Now Playing" background, but also paused.
RE: Is it possible to pause videos when hitting ESC? - baijuxavior - 2012-09-01 07:21
Open your keymap.xml file under 'C:\Users\username\AppData\Roaming\XBMC\userdata\keymaps using notepad or any xml editor. find and replace <escape>PreviousMenu</escape> with <escape>Pause</escape>
If there is no keymafile then create one in notepad using
RE: Is it possible to pause videos when hitting ESC? - NobodyHere - 2012-09-01 15:10
I appreciate you showing me how to change the keys. I didn't even think about changing the defaults.
But.. this isn't what I'm looking for. With that setting, all I've done is assign the pause function to the esc key (instead of using p or spacebar). What I'm looking for is the isn't to remap the ESC key entirely, but to automatically pause any playing videos when I do press it. I want ESC to still function as the "<escape>PreviousMenu</escape>".
RE: Is it possible to pause videos when hitting ESC? - baijuxavior - 2012-09-01 17:36
I think without editing the keymapfiles what you are looking for is not possible. You can put <escape>Pause</escape> under <FullscreenVideo>
Another option is to put the <escape>Pause</escape> just above the <escape>PreviousMenu</escape>. This will pause the movie and will return to the previous menu.
RE: Is it possible to pause videos when hitting ESC? - PatK - 2012-09-01 19:12
You're looking for two tasks under one key, the only way you could do that is a custom batch file.
RE: Is it possible to pause videos when hitting ESC? - artrafael - 2012-09-01 21:54
You can use a Python script with the following contents:
and then assign it to the Escape key:
RE: Is it possible to pause videos when hitting ESC? - NobodyHere - 2012-09-03 18:04
Thanks for all the suggestions people, but nothing has worked so far.
These were the differing settings I used in keymap.xml.
What I'm trying to do here isn't necessarily bind two functions to one key. I'm simply trying to pause video playback when I exit fullscreen mode via the ESC, or even Backspace, keys. I want the video playback to pause as I hit one of these buttons to bring up the last menu, but for them to still operate with their equivalent PreviousMenu/Back functions.
Is this something I could hopefully put in a request for, or can this be achieved in XBMC's current state? ie - Pausing video playback when exiting full-screen.
RE: Is it possible to pause videos when hitting ESC? - NobodyHere - 2012-09-03 19:26
... NM. It was right under my nose.
Thanks to the script offered to me by artrafael above, I created this file, and everything is working like I wanted. (I suppose I could have also added the mouse button for exiting to menu)
I then created the keyboard.xml file, and placed this in it.
I guess I had simply missed calling the python script from the "FullScreenVideo" section. Thanks for all the help!