v19 inputstreamaddon and inputstreamclass to be deprecated in favour of inputstream
#1
All,

For all addons (binary and python) the use of both inputstreamaddon and inputstreamclass will be deprecated in favour of inputstream. The reason for this is that neither refer to all inputstreams and having multiple supported adds complexity. 

As there is a Matrix repo for python3 now it makes sense to include this change also.

For example either of the following (or a mix of the two) would have been valid before the deprecation:


listitem.setContentLookup(False)
listitem.setMimeType('application/xml+dash')
listitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
listitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')


listitem.setContentLookup(False)
listitem.setMimeType('video/mp2t')
listitem.setProperty('inputstreamclass', 'inputstream.ffmpegdirect')
listitem.setProperty('inputstream.ffmpegdirect.mime_type', 'video/mp2t')
listitem.setProperty('inputstream.ffmpegdirect.is_realtime_stream', 'true')

Following the deprecation both examples would change to:


listitem.setContentLookup(False)
listitem.setMimeType('application/xml+dash')
listitem.setProperty('inputstream', 'inputstream.adaptive')
listitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')


listitem.setContentLookup(False)
listitem.setMimeType('video/mp2t')
listitem.setProperty('inputstream', 'inputstream.ffmpegdirect')
listitem.setProperty('inputstream.ffmpegdirect.mime_type', 'video/mp2t')
listitem.setProperty('inputstream.ffmpegdirect.is_realtime_stream', 'true')

As of today the next nightliy builds will support inputstream. The plan being to remove the old values from v19 at the end of May.

For PVR Addons each one will be updated to move to using inputstream. A similar user post created so those who have them embedded in M3U files etc. will also know to update them.

Cheers,

phunkyfish
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#2
Is there something that a pvr addon actively has to do or will it continue to be done by Kodi for the PVR code for timeshift.   For most live tv streams I just use XBMC->OpenFile()

I do use GetChannelStreamProperties() for PVR_STREAM_PROPERTY_ISREALTIMESTREAM for certain streams  but not inputstream properties, at least until timeshifting for m3u8 files is  supported.

Martin
Reply
#3
Nothing specific for you to do. PVR addons will get updated as part of the next API changed anyway

But nextpvr doesn’t require any changes.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#4
so in a Leia/Matrix compatible add-on, I'll need to check for Matrix and set 'inputstream' and for Leia or below, use inputstreamaddon
Reply
#5
(2020-04-17, 14:46)matthuisman Wrote: so in a Leia/Matrix compatible add-on, I'll need to check for Matrix and set 'inputstream' and for Leia or below, use inputstreamaddon

Correct
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#6
awesome. Easily done Smile
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
inputstreamaddon and inputstreamclass to be deprecated in favour of inputstream00
This forum uses Lukasz Tkacz MyBB addons.