Normal
Hello!I don't know Python (only C#) so the script it hard for me to read but if IsTimeshifting returns true the server plugin won't get the TimeshiftChannelcommand from the script.If I always return false the client sends this sequence when I try to change the channel:Handling command; IsTimeshiftingHandling command; TimeshiftChannelPlayChannel result : rtsp://192.168.1.3/stream1.0If I return true (when timeshifting has started) I get this when I try to change the channel:Handling command; IsTimeshiftingHandling command; CloseConnectionMy change to the rtsp URL was that I just return the server address: // timeshift a channel and get the stream url public static String playChannel(int chanId) { serverIntf.StopTimeShifting(); string rtspURL = ""; TvResult result = serverIntf.StartTimeShifting(chanId, ref rtspURL); // rtspURL contains a IP address for me if (result != TvResult.Succeeded) { rtspURL = "[ERROR]:" + result.ToString(); } else { // update globals timeshiftUrl = rtspURL; timeshiftChannel = chanId; }/ Tomas
Hello!
I don't know Python (only C#) so the script it hard for me to read but if IsTimeshifting returns true the server plugin won't get the TimeshiftChannel
command from the script.
If I always return false the client sends this sequence when I try to change the channel:
Handling command; IsTimeshifting
Handling command; TimeshiftChannel
PlayChannel result : rtsp://192.168.1.3/stream1.0
If I return true (when timeshifting has started) I get this when I try to change the channel:
Handling command; CloseConnection
My change to the rtsp URL was that I just return the server address:
// timeshift a channel and get the stream url
public static String playChannel(int chanId)
{
serverIntf.StopTimeShifting();
string rtspURL = "";
TvResult result = serverIntf.StartTimeShifting(chanId, ref rtspURL); // rtspURL contains a IP address for me
if (result != TvResult.Succeeded)
rtspURL = "[ERROR]:" + result.ToString();
}
else
// update globals
timeshiftUrl = rtspURL;
timeshiftChannel = chanId;
/ Tomas