PVR Addon STRM and/or Player() support
#1
In previous version of Kodi I was able to playback channels with their Kodi URL (typically in recent versions pvr://channels/tv/All channels/pvr-addoname_ichannelID.pvr) in an STRM  or directly with the python player but in v18 these methods don't work? 

Is there a new way to call the PVR live TV playback outside of the PVR GUI?

Martin
Reply
#2
I compiled with today's commit from ksooo https://github.com/xbmc/xbmc/commit/339c...2bc1c845f6 now enables playback of pvr:// URL  from python which is my major requirement however some thing is still off with STRM files as it seems to play the main strm file and not the playlist item.

08:46:33.138 T:140282314073856   ERROR: CInputStreamPVRBase - CInputStreamPVRBase - unable to obtain pvr addon instance for item '/home/martin/Videos/live.strm'

Martin
Reply
#3
(2019-02-01, 16:26)emveepee Wrote: I compiled with today's commit from ksooo https://github.com/xbmc/xbmc/commit/339c...2bc1c845f6 now enables playback of pvr:// URL  from python which is my major requirement however some thing is still off with STRM files as it seems to play the main strm file and not the playlist item.

08:46:33.138 T:140282314073856   ERROR: CInputStreamPVRBase - CInputStreamPVRBase - unable to obtain pvr addon instance for item '/home/martin/Videos/live.strm'

Martin


Do you have working minimalistic instructions that I can use to debug this? Maybe a STRM file with instructions what to do with it to run into the bug?
Reply
#4
Okay, I think I understood what the problem is. Gimme some time to come up with a fix.
Reply
#5
If you need anything let me know.  The strm file that I test with is just the pvr:// url that shows in the logs when I play a file.  It is backend specific but yours should be determined from this line

CInputStreamPVRChannel - CInputStreamPVRChannel::OpenPVRStream - opened channel stream pvr://channels/tv/All channels/pvr.nextpvr_8938.pvr


Martin
Reply
#6
The strm file stuff broke with 13777 (PR) and I currently have no clue how to fix it and I'm also not in charge to fix it, because I did not break it, sorry.

Maybe it is a good idea to file an issue: https://github.com/xbmc/xbmc/issues
Reply
#7
Thanks for having a look.  I don't need this to work it just seems the current implmentation is wrong.  I might investigate a bit before I create the issue.

Thanks again getting this working from python was my main item and you did that.

Martin
Reply
#8
@ksooo Do you know if pvr://  streams are mapped through substitution rules in advancedsettings.xml

ie
Code:
<substitute>
2019-02-13 16:12:34.371 T:38224 DEBUG: Registering substitution pair:
2019-02-13 16:12:34.371 T:38224 DEBUG: From: [pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr]
2019-02-13 16:12:34.371 T:38224 DEBUG: To: [http://live.str3am.com:2120]
...
2019-02-13 16:13:12.308 T:38224 NOTICE: VideoPlayer::OpenFile: pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr

I would like to use internet streams rather the DVB or FM card audio for some stations.

Martin
Reply
#9
(2019-02-13, 23:15)emveepee Wrote: @ksooo Do you know if pvr://  streams are mapped through substitution rules in advancedsettings.xml

ie
Code:
<substitute>
2019-02-13 16:12:34.371 T:38224 DEBUG: Registering substitution pair:
2019-02-13 16:12:34.371 T:38224 DEBUG: From: [pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr]
2019-02-13 16:12:34.371 T:38224 DEBUG: To: [http://live.str3am.com:2120]
...
2019-02-13 16:13:12.308 T:38224 NOTICE: VideoPlayer::OpenFile: pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr

I would like to use internet streams rather the DVB or FM card audio for some stations.

Martin  
 They are not, pvr:// is part of Kodis internal VFS and created on the fly when the pvr addon is loaded.
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
#10
Thanks I thought since I can call them from python they might also go through substitution logic.  I was going to look into getting strms working again in v18 but substitution would actually be great.

Martin
Reply
#11
(2019-02-13, 23:33)emveepee Wrote: Thanks I thought since I can call them from python they might also go through substitution logic.  I was going to look into getting strms working again in v18 but substitution would actually be great.

Martin
 I'm not aware of any issues with strm's that contain pvr paths. Are you sure you are using the valid path?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
#12
Pretty sure the same strm file works in v17.

Martin
Reply
#13
(2019-02-13, 23:52)emveepee Wrote: Pretty sure the same strm file works in v17.

Martin

Did you check if the path changed in v18?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
#14
I did check yes, I have python code that calls the same URL and it didn't change and it still works after ksooo's change for v18.1

Martin
Reply
#15
(2019-02-14, 00:06)emveepee Wrote: I did check yes, I have python code that calls the same URL and it didn't change and it still works after ksooo's change for v18.1

Martin
 Yeah, that PR was a revert to old behavior; not a long term solution.
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
PVR Addon STRM and/or Player() support00