Kodi Community Forum

Full Version: inputstreamaddon and inputstreamclass to be deprecated in favour of inputstream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
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.
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
(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
awesome. Easily done Smile
I will create a PR for this change tomorrow which will be merged in the coming days.
(2020-06-04, 20:41)phunkyfish Wrote: [ -> ]I will create a PR for this change tomorrow which will be merged in the coming days.

Thank you.
Hi,

i´ve found this site because of my kodi error "CInputStreamAddon::Supports - 'inputstreamaddon' has been deprecated, please use `#KODIPROP:inputstream=inputstream.adaptive` instead"

i have Kodi 19.1 Matrix on my pc and on my Android IPTV box.
II like to watch movies from filmfriend.de
i have installed  the filmfriend AddOn and inserted my credentials.
But i only got this error in the log fiie.
As i read previous posts above, it says that " I'll need to check for Matrix and set 'inputstream' and for Leia or below, use inputstreamaddon"

How and where exactly to do this?
my  LogFile
p.s. i also use the Enigma2 PVR Addon
(Yesterday, 03:30)Mike Echo Wrote: [ -> ]Hi,

i´ve found this site because of my kodi error "CInputStreamAddon::Supports - 'inputstreamaddon' has been deprecated, please use `#KODIPROP:inputstream=inputstream.adaptive` instead"

i have Kodi 19.1 Matrix on my pc and on my Android IPTV box.
II like to watch movies from filmfriend.de
i have installed  the filmfriend AddOn and inserted my credentials.
But i only got this error in the log fiie.
As i read previous posts above, it says that " I'll need to check for Matrix and set 'inputstream' and for Leia or below, use inputstreamaddon"

How and where exactly to do this?
my  LogFile
p.s. i also use the Enigma2 PVR Addon

You have multiple banned addons on your system , to be able to get any help from here, you would need a clean system with no banned addons install.
The forum moderators have determined that banned addons (wiki) are present on your system. To receive assistance here, these banned items must be removed. If a clean log is not submitted within 3 days, then the relevant post(s) will be removed after this time.
ok, here´s my fresh new LogFile

cheers
You need with replace inputstreamaddon with inputstream in your M3U file.