Kodi Community Forum

Full Version: [SOLVED] Best way to handle multiple stream quality
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to develop an addon that plays url from a website.
I use youtube_dl in order to grab the url of the video. With this I get a list of streaming urls with different qualities.
My current implementations is to pick the best quality and create a playable ListItem.
Sometimes however the server is too slow and streaming is not smooth.
Is it possible to get a context menu with different playable urls?
In such a way the user could select a different streaming quality and avoid problems with network speed.

Maybe there are other solutions that I didn't think about.
I am open to suggestions, thanks!
it's explained in the first post of the youtube-dl thread:
https://forum.kodi.tv/showthread.php?tid=200877
(2018-02-09, 13:15)ronie Wrote: [ -> ]it's explained in the first post of the youtube-dl thread:
https://forum.kodi.tv/showthread.php?tid=200877
 Thanks ronie for your pointer.
However in that post the author just says to use
Code:
'some_function_asking_the_user_to_choose'.
I guess that the question in my first post would be more concerning how to actually implement said function.
Unfortunately I don't see that in the post you are referring to Sad
ok, then i guess this is what you're looking for ;-)
https://codedocs.xyz/xbmc/xbmc/group__py...b690163bef
(2018-02-09, 18:49)ronie Wrote: [ -> ]ok, then i guess this is what you're looking for ;-)
https://codedocs.xyz/xbmc/xbmc/group__py...b690163bef
 Thanks a lot! That did the trick!