Posts: 15
Joined: Feb 2014
Reputation:
0
Hello,
ive just noticed a thing with xbmc/kodi 14 that im running on ubuntu server 14.04,
if for say unattended-updates run and need to reboot, it does, and no issue with that,
but i was wondering if theres anyway to send a commandline signal to xbmc to stop playback?
so i can send that signal on reboots and power offs etc.. so if im watching a movie it saves where in the film i am...
if its not possible well its not a big problem, cause i put reboot orders to execute at 2am that time the htpc shouldnt be on anyway, but in case it might happen that i loose where i was in the movie..
just thought this should be the place to find if anyone knows if its possible..
Posts: 7,649
Joined: Jun 2011
Reputation:
287
possible with json or xbmc-send
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
2014-10-12, 13:30
(This post was last modified: 2014-10-12, 13:32 by topfs2.)
It should do this by default, shouldn't need any extras afaik. We know quite well if the system is shutting down or restarting.
EDIT: looking at the code we don't seem to get the events from the system. However a reboot and powerdown should trigger a sane exit of xbmc, which should stop and store the progress.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
Well I mean it should do it now. If a clean exit is triggered, it should stop and store the progress.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
It is outside of our hands. Its up to the OS and how you shut it down. So only do a bugreport if it doesn't work on a clean exit. All other cases is your system doing it wrong.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."