[SOLVED] Best way to handle multiple stream quality
#1
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!
Reply
#2
it's explained in the first post of the youtube-dl thread:
https://forum.kodi.tv/showthread.php?tid=200877
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(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
Reply
#4
ok, then i guess this is what you're looking for ;-)
https://codedocs.xyz/xbmc/xbmc/group__py...b690163bef
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
(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!
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] Best way to handle multiple stream quality0