2017-11-28, 14:39
Hey Guys,
i'm new in Python and i'm trying to build a little addon.
But i have a problem with a video url.
Can you show me the right way?
Thanks.
My Code:
The code is working, but i need a mjpeg url like:
And this ist not working.
i'm new in Python and i'm trying to build a little addon.
But i have a problem with a video url.
Can you show me the right way?
Thanks.
My Code:
python:
import xbmcgui
import xbmcplugin
import xbmcaddon
import xbmcvfs
import sys
addon_handle = int(sys.argv[1])
xbmcplugin.setContent(addon_handle, 'movies')
xbmcplugin.addDirectoryItem(handle=addon_handle, url='http://xxx/video.mp4', listitem=xbmcgui.ListItem('stream'))
xbmcplugin.endOfDirectory(addon_handle)
xbmcplugin.setContent(addon_handle, 'songs')
xbmcplugin.addDirectoryItem(handle=addon_handle, url='http://xxx/audio.wav', listitem=xbmcgui.ListItem('sound'))
xbmcplugin.endOfDirectory(addon_handle)
The code is working, but i need a mjpeg url like:
python:xbmcplugin.addDirectoryItem(handle=addon_handle, url='http://xxx/video', listitem=xbmcgui.ListItem('item stream'))
And this ist not working.