im working on a plugin but i have a problem when switching to channels
the first time i switch the channel using
TvControl.RemoteControl.Instance.StartTimeShifting(ref user, Int32.Parse(channelId), out card);
the TVServer starts timeshifting my choosen channel and i can use vlc player to show the tv stream
but the second time i switch the channel the vlc shows some seconds the old channel and then switching to the new choosen one
i mimized the time during channel switching by modifying the TimeShifting config of TVServer
i tried to stop the timeshifting using
TvControl.RemoteControl.Instance.StopTimeShifting(ref user, TvControl.TvStoppedReason.KickedByAdmin);
or
TvControl.VirtualCard card = server.CardByIndex(user, 2);
card.StopTimeShifting();
before start timeshifting but with the same result
I'm wondering about that with the mediaportal Client when i switch the channel there is no timshift buffer delay the tv stream starts just when i switch the channel
my question is how can i clear the timeshift buffer or is there another way to switch the channel?
I also tried to find in the source code of mediaportal client how the client does channel switching but didnt find it :-(
thanks for any suggestions
the first time i switch the channel using
TvControl.RemoteControl.Instance.StartTimeShifting(ref user, Int32.Parse(channelId), out card);
the TVServer starts timeshifting my choosen channel and i can use vlc player to show the tv stream
but the second time i switch the channel the vlc shows some seconds the old channel and then switching to the new choosen one
i mimized the time during channel switching by modifying the TimeShifting config of TVServer
i tried to stop the timeshifting using
TvControl.RemoteControl.Instance.StopTimeShifting(ref user, TvControl.TvStoppedReason.KickedByAdmin);
or
TvControl.VirtualCard card = server.CardByIndex(user, 2);
card.StopTimeShifting();
before start timeshifting but with the same result
I'm wondering about that with the mediaportal Client when i switch the channel there is no timshift buffer delay the tv stream starts just when i switch the channel
my question is how can i clear the timeshift buffer or is there another way to switch the channel?
I also tried to find in the source code of mediaportal client how the client does channel switching but didnt find it :-(
thanks for any suggestions