2013-11-10, 19:19
i'm using xbmcswift and i use this to play media
but if I want to play youtube video or
Google Video url like
or rmtp media, how can I code it ?
AND I have an error when I try to use my add-on on rasPi My LOG file.
how can I fix it.
Thank you very much.
Code:
@plugin.route('/videos/')
def show_videos():
items = [
{'label': 'Calculus: Derivatives 1',
'path': 'http://s3.amazonaws.com/KA-youtube-converted/ANyVpMS3HL4.mp4/ANyVpMS3HL4.mp4',
'is_playable': True,
}
]
return plugin.finish(items)
but if I want to play youtube video or
Google Video url like
Code:
http://redirector.googlevideo.com/videoplayback?id=ab8a7eded4167aa30&itag=22&source=picasa&cmo=sensitive_content%3Dyes&ip=0.0.0.0&ipbits=0&expire=1386697391&sparams=id,itag,source,ip,ipbits,expire&signature=DD02AFD0018610D632FCCE94ECEE6C75A1DD42D7.5AF5D41DDB6ED8C24CA23D75B30AFCB9653A69AE&key=lh1
or rmtp media, how can I code it ?
AND I have an error when I try to use my add-on on rasPi My LOG file.
Code:
Error Type:
Error Contents: No module named xbmcswift2
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/plugin.video.play/addon.py", line 22, in
from xbmcswift2 import Plugin, xbmcgui, xbmcaddon, xbmc
ImportError: No module named xbmcswift2
how can I fix it.
Thank you very much.