• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 15
Release Aerial (ATV4 Screensavers)
#46
(2015-12-23, 05:31)graysky Wrote: I am getting a freeze of the kodi interface when this screensaver is invoked on an up-to-date Arch box. Here is the debug log as the screensaver is activated after the timeout period:
Code:
22:25:02 T:139951226218624   DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
22:25:02 T:139951226218624   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
22:25:02 T:139951226218624   DEBUG: Activating window ID: 12900
22:25:02 T:139951226218624   DEBUG: ------ Window Deinit (SettingsCategory.xml) ------
22:25:02 T:139951226218624   DEBUG: ------ Window Init () ------
22:25:02 T:139949689005824  NOTICE: Thread LanguageInvoker start, auto delete: false
22:25:02 T:139949689005824    INFO: initializing python engine.
22:25:02 T:139949689005824   DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): start processing
22:25:02 T:139949689005824  NOTICE: -->Python Interpreter Initialized<--
22:25:02 T:139949689005824   DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): the source file to load is "/var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py"
22:25:02 T:139949689005824   DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): setting the Python path to /var/lib/kodi/.kodi/addons/screensaver.atv4:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages
22:25:02 T:139949689005824   DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): entering source directory /var/lib/kodi/.kodi/addons/screensaver.atv4
22:25:02 T:139949689005824   DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): instantiating addon using automatically obtained id of "screensaver.atv4" dependent on version 2.1.0 of the xbmc.python api
22:25:02 T:139949689005824   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
22:25:02 T:139951226218624   DEBUG: started alarm with name: sssssscreensaver
22:25:02 T:139951226218624   DEBUG: ------ Window Deinit () ------
22:25:02 T:139949689005824   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
22:25:02 T:139949689005824   DEBUG: ------ Window Init (SettingsCategory.xml) ------
22:25:02 T:139950066579200  NOTICE: Thread AlarmClock start, auto delete: false
22:25:02 T:139949689005824   DEBUG: CAnnouncementManager - Announcement: OnScreensaverDeactivated from xbmc
22:25:02 T:139949689005824   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverDeactivated
22:25:02 T:139949689005824   DEBUG: POParser: loaded 19 strings from file /var/lib/kodi/.kodi/addons/screensaver.atv4/resources/language/English/strings.po
22:25:02 T:139951226218624   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:25:02 T:139951226218624   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
22:25:02 T:139951226218624   DEBUG: Loading: /usr/lib/kodi/system/ImageLib-x86_64-linux.so
22:25:04 T:139951226218624   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------

The entire GUI is frozen at this point.

Problem is that a video is not really a screensaver, when you start a video you basically deactivate the screensaver. So the addon does a sort of a hack...
It starts by calling some input for the screensaver to be deactivated, waits for the event and starts the video playback. Sometimes, or for some machines the waiting time may not be enough and the screensaver starts playing near the deactivate action..freezing the interface.
I'll probably add a setting for users to configure this waiting timeout manually Smile
Reply
#47
I understand. I am happy to test out some code when you author it Wink
Need help programming a Streamzap remote?
Reply
#48
I'm getting stuttering when the add-on is run after the screensaver activates, but not when I test it out. I was thinking at first it could be because of my internet connection, so I setup a folder on my server and tried to download the videos to there, but it's not working.

Debug log for downloading the videos: http://xbmclogs.com/pwwbru1xb
Reply
#49
Thanks for bringing this awesome videos to Kodi!

But the videos are not shuffeled here. They always have the same order.
I installed it from the offical repositories. v1.3.0
Already tried to reinstall the addon.
Reply
#50
Thanks for a great add-on!

One thing thought - right now when screensaver is starting there's a message "Initialiazing" or whatever and notification sound. Can you get rid of the both? It makes experience a little bit smoother.

Plus I don't know whether it's a bug or not - but you can't start a screensaver using PREVIEW in Kodi's Appearences - Screensaver setting. It's just shows same notification and that is it (I got all the videos downloaded locally). But it's still working while idling in the menu
HTPC: XBMC Gotham 15.2 on Intel NUC DCCP847DYE (Intel Celeron 847), 2GB RAM, Samsung PM830 SSD, OpenELEC 6.0.0
SYSTEM: Panasonic TX-P65ST50, Pioneer VSX-922K, Wharfedale Diamond 9.5 + Diamond 9.CS + SW150 sub, Logitech Harmony 880 remote
Reply
#51
There's a setting in the addon settings to disable the notification. The preview is working fine for me on all my machines running Isengard unfortunately I cant reproduce the bug.
Can you provider more details about your system?
Reply
#52
@enen92 - Any time for you check into the issue I am experiencing?

(2015-12-23, 23:07)enen92 Wrote: Problem is that a video is not really a screensaver, when you start a video you basically deactivate the screensaver. So the addon does a sort of a hack...
It starts by calling some input for the screensaver to be deactivated, waits for the event and starts the video playback. Sometimes, or for some machines the waiting time may not be enough and the screensaver starts playing near the deactivate action..freezing the interface.
I'll probably add a setting for users to configure this waiting timeout manually Smile
Need help programming a Streamzap remote?
Reply
#53
Hey enen92,
amazing Addon! I love it. However I've got a severe problem. When I play music or radio channels via the radio addon for Kodi and do not browse Kodi, the screensaver activates anyways. Meaning: Even though a file is played (music or radio), the video tries to play however freezes immediately. The music keeps playing but when I press a button to get rid of the frozen video/image the playing stops and I am back in the main menu or file browser.

I would love either of these solutions:
1) Play the screensaver videos during listening to music
-I know this is not possible as the screensaver videos are regardes as normal videos and you cant play two files at a time.

2) Deactivate the screensaver when playing audio files.
-I dont know if this is possible but would solve my problem too, i guess.

Thank you in advance for tips and tricks!

I use:
Raspberry Pi2
Kodi 15.2 Isengard in openelec 6.0.1
Reply
#54
(2015-12-23, 00:49)graysky Wrote: Really cool; thank you for this. Where does the addon pull the videos? I see in offline mode is can cache them to the disk but what is the source?

EDIT: http://9to5mac.com/2015/10/19/apple-tv-4...nsavers-2/

Sorry, life has been pretty busy lately. Finally found some time to work a bit on it. It turns out I was instantiating the monitor class after the onDeactivate method Sleepy The monitor class would only catch the onDeactivate method by luck lol making the interface to freeze.
Also it looks like Helix has some problems with the screensaver (in fact it was developed and tested using Isengard) so I decided to bump also the python ABI version and hopefully will ask the Team to move it to isengard repository.
Can you please test the version in master and check if you still have troubles with it?

https://github.com/enen92/screensaver.atv4

Sorry for the big delay

PS: Tested on the weaker hardware I have available (RPI 1) and no freezes Smile
Reply
#55
(2016-02-02, 20:24)ShorK Wrote: Hey enen92,
amazing Addon! I love it. However I've got a severe problem. When I play music or radio channels via the radio addon for Kodi and do not browse Kodi, the screensaver activates anyways. Meaning: Even though a file is played (music or radio), the video tries to play however freezes immediately. The music keeps playing but when I press a button to get rid of the frozen video/image the playing stops and I am back in the main menu or file browser.

I would love either of these solutions:
1) Play the screensaver videos during listening to music
-I know this is not possible as the screensaver videos are regardes as normal videos and you cant play two files at a time.

2) Deactivate the screensaver when playing audio files.
-I dont know if this is possible but would solve my problem too, i guess.

Thank you in advance for tips and tricks!

I use:
Raspberry Pi2
Kodi 15.2 Isengard in openelec 6.0.1

Also moved the Player.HasMedia check somewhere before the window is started so with the version that is now on the master branch the screensaver should not be triggered when playing media. Please test and report back so an update can be issued:

https://github.com/enen92/screensaver.atv4
Reply
#56
(2016-02-03, 16:33)enen92 Wrote:
(2016-02-02, 20:24)ShorK Wrote: Hey enen92,
amazing Addon! I love it. However I've got a severe problem. When I play music or radio channels via the radio addon for Kodi and do not browse Kodi, the screensaver activates anyways. Meaning: Even though a file is played (music or radio), the video tries to play however freezes immediately. The music keeps playing but when I press a button to get rid of the frozen video/image the playing stops and I am back in the main menu or file browser.

I would love either of these solutions:
1) Play the screensaver videos during listening to music
-I know this is not possible as the screensaver videos are regardes as normal videos and you cant play two files at a time.

2) Deactivate the screensaver when playing audio files.
-I dont know if this is possible but would solve my problem too, i guess.

Thank you in advance for tips and tricks!

I use:
Raspberry Pi2
Kodi 15.2 Isengard in openelec 6.0.1

Also moved the Player.HasMedia check somewhere before the window is started so with the version that is now on the master branch the screensaver should not be triggered when playing media. Please test and report back so an update can be issued:

https://github.com/enen92/screensaver.atv4

Dude I love you. Works perfectly. My problem is solved!
However, the start of the screensaver changed. It looks like this: Youtube Video
So basically it is retrieving the video list showing the Golden Gate bridge image in the background and loading a random video (according to my settings) afterwards.
As far as i remember this has not always been like that.
If yes, dont mind and ignore this.
Reply
#57
It was supposed to be like that from the start Smile The bug wasn't allowing it to behave like in your video.
Thanks for the video as well, added to post #1 Big Grin
Reply
#58
(2016-02-03, 16:32)enen92 Wrote: Sorry, life has been pretty busy lately. Finally found some time to work a bit on it. It turns out I was instantiating the monitor class after the onDeactivate method Sleepy The monitor class would only catch the onDeactivate method by luck lol making the interface to freeze.
Also it looks like Helix has some problems with the screensaver (in fact it was developed and tested using Isengard) so I decided to bump also the python ABI version and hopefully will ask the Team to move it to isengard repository.
Can you please test the version in master and check if you still have troubles with it?

https://github.com/enen92/screensaver.atv4

Sorry for the big delay

PS: Tested on the weaker hardware I have available (RPI 1) and no freezes Smile

I replied in the github issue (https://github.com/enen92/screensaver.atv4/issues/4) and will update there. Thanks!
Need help programming a Streamzap remote?
Reply
#59
Hi there I love the screensaver its amazing!! I was wondering if it is not possible to play music via kodi during screensaver playback due to the prior mentioned video usage. Would it be possible to allow airplay while the screensaver was active? I wanted to airplay music through kodi to my stereo and limit the burn in on my plasma! thanks great work!
Reply
#60
(2016-02-03, 22:32)wizzord Wrote: Hi there I love the screensaver its amazing!! I was wondering if it is not possible to play music via kodi during screensaver playback due to the prior mentioned video usage. Would it be possible to allow airplay while the screensaver was active? I wanted to airplay music through kodi to my stereo and limit the burn in on my plasma! thanks great work!

Nop, the same problem applies. It doesn't matter much how the audio/videos reach Kodi but how they are played.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 15

Logout Mark Read Team Forum Stats Members Help
Aerial (ATV4 Screensavers)6