2017-05-23, 10:41
First, thank you very much @ruuk for the update.
I'm working with the current version of youtube dl and I have a problem streaming a youtube video. The video is showing very well but there is no sound.
I have checked the settings and it's seem to be all fine. The code that I'm running search a video in Youtube and show the list items with the results. When you select a item you call back the plugin to
run the YDStreamExtractor to get the stream URL and run setResolvedUrl() function to play the content.
The main code is:
With this code the video is show perfect but without sound. What could be the issue?
Thanks
I'm working with the current version of youtube dl and I have a problem streaming a youtube video. The video is showing very well but there is no sound.
I have checked the settings and it's seem to be all fine. The code that I'm running search a video in Youtube and show the list items with the results. When you select a item you call back the plugin to
run the YDStreamExtractor to get the stream URL and run setResolvedUrl() function to play the content.
The main code is:
Code:
#
# Main code
#
if sys.argv[2] == "":
# Search form to get Youtube ID
ventana = VentanaBusqueda()
ventana.doModal()
else:
# Playing selected item
idVideo = "http://www.youtube.com/watch?v=%s" % (sys.argv[2][1:])
vid = YDStreamExtractor.getVideoInfo(idVideo, quality=0)
item = xbmcgui.ListItem(path=vid.streamURL())
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
With this code the video is show perfect but without sound. What could be the issue?
Thanks