home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
XBMC Python Script
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="toso06" data-source="post: 375878" data-attributes="member: 88388"><p>Hello!</p><p></p><p>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 </p><p></p><p>command from the script.</p><p></p><p>If I always return false the client sends this sequence when I try to change the channel:</p><p>Handling command; IsTimeshifting</p><p><strong>Handling command; TimeshiftChannel</strong></p><p>PlayChannel result : rtsp://192.168.1.3/stream1.0</p><p></p><p>If I return true (when timeshifting has started) I get this when I try to change the channel:</p><p>Handling command; IsTimeshifting</p><p>Handling command; CloseConnection</p><p></p><p>My change to the rtsp URL was that I just return the server address:</p><p></p><p> // timeshift a channel and get the stream url</p><p> public static String playChannel(int chanId)</p><p> {</p><p> serverIntf.StopTimeShifting();</p><p> string rtspURL = "";</p><p></p><p> TvResult result = serverIntf.StartTimeShifting(chanId, ref rtspURL); // rtspURL contains a IP address for me</p><p></p><p> if (result != TvResult.Succeeded)</p><p> {</p><p> rtspURL = "[ERROR]:" + result.ToString();</p><p> }</p><p> else</p><p> { </p><p> // update globals</p><p> timeshiftUrl = rtspURL; </p><p> timeshiftChannel = chanId;</p><p></p><p> }</p><p></p><p>/ Tomas</p></blockquote><p></p>
[QUOTE="toso06, post: 375878, member: 88388"] 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 [B]Handling command; TimeshiftChannel[/B] 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; IsTimeshifting 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
XBMC Python Script
Contact us
RSS
Top
Bottom