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
Language specific support
Deutsches MediaPortal Forum
Hard- und Software rund um den HTPC
Hardware
TV-Karten
Digital Devices Octopus NET CT/2 Erfahrungen?
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="KayDiefenthal" data-source="post: 1065059" data-attributes="member: 22825"><p>ok with DDOnet runs your code fine but now have i testet with the other Transmitters</p><p>and ther is the first Problem</p><p></p><p>Setup Response you check if the Session Header contains sessionid and timetolive</p><p></p><p>private static readonly Regex REGEX_RTSP_SESSION_HEADER = new Regex(@"\s*([^\s;]+)(;timeout=(\d+))");</p><p></p><p>but the ttl isnt there so crashs it</p><p></p><p>you Need something like this</p><p>[CODE] var sessionline = s;</p><p> if (string.IsNullOrEmpty(sessionline))</p><p> {</p><p></p><p> }</p><p> var sessionlinevalues = sessionline.Split(';');</p><p> var sessionvalues = sessionlinevalues[0].Split(':');</p><p> _rtspSessionId = sessionvalues[1];</p><p> if(sessionlinevalues.Length> 1)</p><p> {</p><p> var ttlvalues = sessionlinevalues[1].Split('=');</p><p> _rtspSessionTimeToLive = int.Parse(ttlvalues[1]);</p><p> }[/CODE]</p><p>but then you Need a const ttl value for the KeepAliveThread</p><p></p><p>edit</p><p></p><p>possible fix ?</p><p></p><p>[CODE]if (sessionHeader.Contains(";"))</p><p> {</p><p> var sessionvalues = sessionHeader.Split(';');</p><p> _rtspSessionId = sessionvalues[0];</p><p> var ttlvalues = sessionvalues[1].Split('=');</p><p> _rtspSessionTimeToLive = int.Parse(ttlvalues[1]);</p><p> }</p><p> else</p><p> {</p><p> _rtspSessionId = sessionHeader;</p><p> }[/CODE]</p><p>for the guys that would test is an test build attached</p><p>the source is here <a href="https://sourceforge.net/p/satip/code/HEAD/tree/" target="_blank">https://sourceforge.net/p/satip/code/HEAD/tree/</a></p></blockquote><p></p>
[QUOTE="KayDiefenthal, post: 1065059, member: 22825"] ok with DDOnet runs your code fine but now have i testet with the other Transmitters and ther is the first Problem Setup Response you check if the Session Header contains sessionid and timetolive private static readonly Regex REGEX_RTSP_SESSION_HEADER = new Regex(@"\s*([^\s;]+)(;timeout=(\d+))"); but the ttl isnt there so crashs it you Need something like this [CODE] var sessionline = s; if (string.IsNullOrEmpty(sessionline)) { } var sessionlinevalues = sessionline.Split(';'); var sessionvalues = sessionlinevalues[0].Split(':'); _rtspSessionId = sessionvalues[1]; if(sessionlinevalues.Length> 1) { var ttlvalues = sessionlinevalues[1].Split('='); _rtspSessionTimeToLive = int.Parse(ttlvalues[1]); }[/CODE] but then you Need a const ttl value for the KeepAliveThread edit possible fix ? [CODE]if (sessionHeader.Contains(";")) { var sessionvalues = sessionHeader.Split(';'); _rtspSessionId = sessionvalues[0]; var ttlvalues = sessionvalues[1].Split('='); _rtspSessionTimeToLive = int.Parse(ttlvalues[1]); } else { _rtspSessionId = sessionHeader; }[/CODE] for the guys that would test is an test build attached the source is here [url]https://sourceforge.net/p/satip/code/HEAD/tree/[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Hard- und Software rund um den HTPC
Hardware
TV-Karten
Digital Devices Octopus NET CT/2 Erfahrungen?
Contact us
RSS
Top
Bottom