Solved Some livestreams are playing weirdly
#1
Hi,

I wrote a Kodi addon for my ISP's IPTV API and it works great. Most streams which are not DRM protected are HLS streams. And I have a strange issue while I am trying to watch some of them...

If I play the urls like that:

python:
xbmc.Player().play(url, item)

The playback starts however I can only hear the audio and sometimes I can even see a black screen but usually it keeps showing the addon screen and not the actual video stream. However if I go back to the Kodi home without interrupting the stream I can already see the video stream in the background. Clicking on that area or clicking on the maximise option shows it just fine. However it should be automatic in all cases.

I figured that if I use this method:

python:
xbmcplugin.setResolvedUrl(handle, True, listitem=item)

I can get the stream just fine however I don't like this one because it keeps leaving a tick in the item (marks as watched) which is not elegant since we are talking about infinite live streams.

I have checked the logs, but nothing informative shows up there. And it's happening for many other users using my addon also but only for some streams and not always.

What can I do? What's the best way to start a livestream playback with Kodi?
Reply
#2
use playcount:0 infolabel or add .pvr to the end of the plugin path
https://forum.kodi.tv/showthread.php?tid...pid2743328
Reply
#3
Thank you, that was it! Smile
Reply
#4
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
Some livestreams are playing weirdly0