Posts: 6,810
Joined: Jul 2010
Reputation:
198
2016-02-14, 12:12
(This post was last modified: 2017-07-22, 15:35 by FernetMenta.)
1)
strStreamURL for channels and recordings is deprecated. It lead to a lot of issues and workarounds. Changing the original fileitems's path and pretend it is something other is not the way to go.
pvr addons need to implement the required API functions like ReadRecordedStream or ReadLiveStream
2)
SwitchChannel is not called anymore by Kodi and will be dropped from the addon interface
Posts: 64
Joined: Aug 2014
Reputation:
4
The PVR addon I'm working on receives a DASH stream. This Stream can be played with the inputstream.mpd. If strStreamURL is deprecated, is
there an other way to use an inputstream addon out of the PVR addon?
Posts: 6,810
Joined: Jul 2010
Reputation:
198
I am sorry. I don't accept the PRs for the reasons I posted and in particular not for deprecated features.
Posts: 64
Joined: Aug 2014
Reputation:
4
Do you have a time line/Kodi version, when it will be possible to set this file item out of a PVR addon?
Can you propose another solution for my case?
And how can a feature be deprecated as long as the desired new solution is not in place?
Posts: 6,810
Joined: Jul 2010
Reputation:
198
what would call this api funktion and when?
Posts: 64
Joined: Aug 2014
Reputation:
4
What about if we call the CPVRClient in VideoPlayerCodec::Init and let there the "pvr://" file item be translated into the file item which is then provided to CDVDFactoryInputStream::CreateInputStream.
This would make the whole CDVDInputStreamPVRManager obsolete. For backwards compatibility, the file item is simply not translated causing CDVDInputStreamPVRManager to be used.
This would mean all special handling for PVR streams would need some rework (channel switch, recording and so on).
Else we could keep CDVDInputStreamPVRManager and make it a simple wrapper to the actual input stream and call CDVDFactoryInputStream::CreateInputStream from within CDVDInputStreamPVRManager again to create the input stream fro the new file item.
What do you think?