2017-11-27, 16:07
For example: I watch or listen something and want to resume later. I hit pause and turn my TV off (HTPC standby get triggered as expected). Some hours later I switch it back on and then:
Case A (paused Media File)
Expacted Behaivor
View should display my freezed pause view
Case B (running Stream)
Expacted Behaivor
View should play the livestream
Case C (running Media File)
Expacted Behaivor
View should resume the media
Current bevaivor:
the video player start to terminate as soon as standby entering is detected. Termination does finish on standby resume
Now I start to write a plugin to fix the resume state. Maybe I would call it "resume kodi as left" or "keep kodi state on resume" or something similar.
Is this plugin realy neccesary or did I miss a setting? Or is this a platform specific bug (does happen on windows)? If it is a bug I would prepair some clean environments to reproduce it and provide many details and debug logs.
If you tell me, yes falco. It's our target to reset kodi on stanby resume, we don't want to restore the last viewed screen. Then I would write a addon to restore the view state.
But if you tell me, no falco thats a bug or there is a setting or a addon to change that behaivor then I don't want to write a addon for this.
Yes I found some addons for Kodi Car users who do have a Kodi crash on each exit, but these plugins does constantly update the resume state. I don't like this approach, it feels silly.
And I found some other people who did request the same thing but no anweres there:
https://forum.kodi.tv/showthread.php?tid...ght=resume
https://forum.kodi.tv/showthread.php?tid...ght=resume
At least Case D (timeshift) is working, but only because the host can't enter standby/hibernate during stream recording. If I force standby it would just bringt me back to the kodi home screen after resume.
I hope you could clearify if this video player termination is expected or not because I did create this thread because I would not waste time by fixing this because the kodi team is maybe already working on this.
Based on latest discussions I do already have an idea to skip player termination workarround without breaking it.
IPlayer.h:
The following things are known todos for warm start:
- save and restore stack
- playlist sleep support
- optical disc sleep support
- keep last used player state
- keep video display state (foreground/background)
- (force terminated player) current behaivor, maybe it's not needed anymore and only existing because of the workarround
- (force startupaction) is maybe not needed, and if it is needed it would be not part of power management because this is an PVR feature.
- skip player termination
Case A (paused Media File)
Expacted Behaivor
View should display my freezed pause view
Case B (running Stream)
Expacted Behaivor
View should play the livestream
Case C (running Media File)
Expacted Behaivor
View should resume the media
Current bevaivor:
the video player start to terminate as soon as standby entering is detected. Termination does finish on standby resume
Now I start to write a plugin to fix the resume state. Maybe I would call it "resume kodi as left" or "keep kodi state on resume" or something similar.
Is this plugin realy neccesary or did I miss a setting? Or is this a platform specific bug (does happen on windows)? If it is a bug I would prepair some clean environments to reproduce it and provide many details and debug logs.
If you tell me, yes falco. It's our target to reset kodi on stanby resume, we don't want to restore the last viewed screen. Then I would write a addon to restore the view state.
But if you tell me, no falco thats a bug or there is a setting or a addon to change that behaivor then I don't want to write a addon for this.
Yes I found some addons for Kodi Car users who do have a Kodi crash on each exit, but these plugins does constantly update the resume state. I don't like this approach, it feels silly.
And I found some other people who did request the same thing but no anweres there:
https://forum.kodi.tv/showthread.php?tid...ght=resume
https://forum.kodi.tv/showthread.php?tid...ght=resume
At least Case D (timeshift) is working, but only because the host can't enter standby/hibernate during stream recording. If I force standby it would just bringt me back to the kodi home screen after resume.
I hope you could clearify if this video player termination is expected or not because I did create this thread because I would not waste time by fixing this because the kodi team is maybe already working on this.
Based on latest discussions I do already have an idea to skip player termination workarround without breaking it.
IPlayer.h:
cpp:
/**
if this return false, player will get terminated onSleep to force an player cold start onWake to fix any unknwon issues with closed connections or session timeouts
*/
virtual bool SupportsSleep() { return false; }
The following things are known todos for warm start:
- save and restore stack
- playlist sleep support
- optical disc sleep support
- keep last used player state
- keep video display state (foreground/background)
- (force terminated player) current behaivor, maybe it's not needed anymore and only existing because of the workarround
- (force startupaction) is maybe not needed, and if it is needed it would be not part of power management because this is an PVR feature.
- skip player termination