New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video stream max resolution 720p after Shield sleep -> wakeup #699
Comments
Why not respond in #633 when details were asked for? Worked around the problem there, but your system/network seems broken and fails again when resuming from sleep. How is your local network set up? Are you using a VPN? There is an option in Kodi for |
|
Nothing unusual except the device name used for hostname is an IP address, your device loopback interface doesn't work, and all your local services are binding to a network interface. What shows up when you go to |
There are two fields:
=> When I click on "Select Listen IP", I can choose between 0.0.0.0, 127.0.0.1 and 10.10.10.50 (my static IP). But the addon some exits and nothing has changed when I enter again the settings. |
Try and use |
Alright, I will give it a try and will return in a few days - thank you |
IP address has changed in log, but problem still the same I can understand, that have some network errors during the nighttime, as the NVIDIA Shield is somehow in sleep mode. I also can not access via HTTP Remote Control or Web Interface during that time. But I dont understand the network issues at 2024-04-15 15:44:53.410 T:8515 when everthing is up and running, and I would like to playback a youtube video. As soon as I restart KODI, the problem is gone -> Indicator for a bug, not a misconfiguration. |
Unfortunately I don't have any good ideas as to how to resolve your particular issue. As I said, for some reason your loopback interface doesn't work, and when putting your device to sleep the http server that this plugin uses is not shutdown properly and therefore can't restart properly. This plugin uses a fixed port so that people can easily access the API configuration page, so once that port is selected it needs to be accessible, and once bound it needs to be able to be unbound when the http server stops. I am not sure if there is anyway for a plugin to know that your device is going to sleep, but because it doesn't know, it doesn't do this. If a random port was used, then the problem could be ignored. That's the only thing I can think of that may work. |
How do you normally put your device to sleep? Have made some changes so the http server will shutdown when Kodi is idle. I don't think it will necessarily help your situation, but it might be able to shutdown before your device goes to sleep, and therefore then be able to restart properly. You can test it using https://github.com/MoojMidge/plugin.video.youtube/releases/tag/v7.0.6%2Bbeta.2 |
Two ways... either via idle timeout and automatic sleep after a while, or via an adb command sent by my ioBroker via Harnomy remote "input keyevent KEYCODE_SLEEP" At the moment I use a workaround, when I switch off with ioBroker with a script:
Switch on:
=> Consequently, I have a freshly started KODI, and the problem does not appear. But I will test you beta anyways |
The http server shut-down on idle should work in this scenario. The timeout in the plugin is 30s, so as long as your device only goes to sleep after an idle period greater than that, it should avoid this problem. |
- Attempt to shutdown before network interface stops anxdpanic#699 - Can't use onScreensaverActivated/onScreensaverDeactivated as screensaver may not be enababled
I had the same problem with my Shield TV and the latest beta fixed it. Many thanks! |
Context
Please provide any relevant information about your setup
Expected Behavior
My Youtube Plugin setting for streamselection is "quality". If everything is working fine, it should select a 4K stream, if available.
Current Behavior
When KODI is up and running together with DENON AVR and TV, everything is working fine.
As soon as I put NVIDIA Shield to sleep and switch off TV and DENON.. after a wakeup the streamselection decides to 720p.
Steps to Reproduce
Log
Debug Log #1 after wakup (steps 1-6)
kodi-afterSleep.log
Debug Log #2 after restart (steps 7-8)
kodi-afterRestart.log
Additional Information
The text was updated successfully, but these errors were encountered: