2017-08-11, 07:46
(2017-08-10, 23:30)rbuehlma Wrote: I have created a PR with this proposed interface:
https://github.com/xbmc/xbmc/pull/12654
Thanks. I will comment on github.
(2017-08-10, 23:30)rbuehlma Wrote: I have created a PR with this proposed interface:
https://github.com/xbmc/xbmc/pull/12654
(2017-08-21, 23:07)margro Wrote: I'm currently trying to implement the new GetChannelStreamProperties() for pvr.mediaportal.tvserver addon and I'm facing some problems.
It seems that GetChannelStreamProperties() is called before OpenLiveStream()
This is a bit annoying since I know the RTSP url only after the call to OpenLiveStream(). The MediaPortal TV server returns the URL after tuning.
I tried to work around this by tuning already in the GetChannelStreamProperties() function but this results in another problem when doing a channel switch.
On a channel switch, the only call the addon receives is GetChannelStreamProperties() if I return the same URL as for the previous channel.
The problem is that for a channel switch, I have to stop the RTSP stream, tune a new channel and restart streaming. The URL is in most cases the same: e.g. rtsp://127.0.0.1/stream4.0 but I cannot predict it.
During the call to GetChannelStreamProperties(), the existing channel is still playing in Kodi, so stopping the stream and starting a new one results in a playback failure and no new channel playback.
In the old situation, the OpenLiveStream() call was deliberately called before the GetLiveStreamURL() function to address this.
Is there a reason why the GetChannelStreamProperties() function is called before the OpenLiveStream() call?
(2017-08-22, 18:38)rbuehlma Wrote: Does it work if you add some dummy values to the URL?No, this hack does not work either. So, the result is still that the new GetChannelStreamProperties() does not accept the same URL after a channel switch. MediaPortal only changes the URL on a channel switch when needed (e.g. when switching to a different tuner). Even completely stopping and restarting the stream will most of the times still return the same URL (but tuned to a different channel).
<rtsp-url>?channel=some_channel_identifyer
I expect that the backend will ignore these values but Kodi will recognize them as a new URL.