Last active
January 22, 2019 15:21
-
-
Save mortalis13/adcd7b6460f735878c2174c80f1d6258 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- addon.xml | |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<addon id="script.autostarttest" name="Autostart Test Script" version="1.0.1" provider-name="work"> | |
<requires> | |
<import addon="xbmc.python" version="2.1.0"/> | |
</requires> | |
<extension point="xbmc.service" library="addon.py" start="startup"> | |
</extension> | |
<extension point="xbmc.addon.metadata"> | |
<platform>all</platform> | |
<summary lang="en">Script Test</summary> | |
<description lang="en">Script Test</description> | |
</extension> | |
</addon> | |
--- | |
-- addon.py | |
import xbmc | |
def test(): | |
xbmc.log('-- autostarttest addon', xbmc.LOGNOTICE) | |
url = 'udp://239.255.1.1:7777/' | |
xbmc.Player().play(url) | |
xbmc.log('-- after play()', xbmc.LOGNOTICE) | |
# --- | |
test() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment