[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
Hey guys, im using this addon in a very simple way and its been working wonderfully... however I've run into a small snag.

On boot & on stop of video i run this script (play.sh):
Code:
#!/bin/bash
kodi-send -a "PlayMedia(my_mp3_file.mp3)";

The idea is the mp3 provides a little ambient background music while navigating through the menus or when its just sitting idle. (the actual script is a little more involved in randomly picking an mp3 from a local directory)

when the mp3 is done a "stop" is detected and the script runs again and keeps playing (i think this is where my problem is coming from)... after a while i get the following error:
Code:
OSError: [Errno 12] Cannot allocate memory
and thats the end, my loop stops running because there is no longer an "end/stop" to trigger the script being run again.

the odd part is i can play a normal movie/tv show... its just my script that fails out until i reboot. Ive googled around and my error points to swap file issues? but im not able to figure out how that applies?

Any pointers? thanks?
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by apeg - 2015-12-09, 06:53
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4