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
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
TvControl.User() is not proper
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="binary64" data-source="post: 277600" data-attributes="member: 23446"><p>I'm using the latest-but-one tv server (not MP client).</p><p></p><p>If I do: (cross posted from this *post* on <a href="https://forum.team-mediaportal.com/newcomers-forum-240/my-thread-questions-about-tvengine3-api-39424/#post268121" target="_blank">https://forum.team-mediaportal.com/newcomers-forum-240/my-thread-questions-about-tvengine3-api-39424/#post268121</a> thread)</p><p></p><p>user = new TvControl.User("Test", true);</p><p>result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card);</p><p>result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card);</p><p>result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card);</p><p></p><p>the results are: NoVideoAudioDetected, UnknownChannel, UnknownChannel (incorrect/bug imo)</p><p></p><p>note: the channelid 33 is off-air</p><p></p><p>However,</p><p>user = new TvControl.User("Test", true);</p><p>result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card);</p><p>user = new TvControl.User("Test", true);</p><p>result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card);</p><p>user = new TvControl.User("Test", true);</p><p>result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card);</p><p></p><p>the results are: NoVideoAudioDetected, NoVideoAudioDetected, NoVideoAudioDetected (correct imo)</p><p></p><p>The reason I'm doing this, is when user idles on an off-air channel, i am polling it every few seconds so that when the channel finally comes back on air, it immedately starts playing.</p><p></p><p>Thanks!</p><p></p><p>Update:</p><p></p><p>[16:30] <binary64_> just been looking more into this TvControl.User problem/bug</p><p>[16:31] <binary64_> if (new User("fred", true) != new User("fred", true)) { MessageBox.Show("this fires, wrongfully imho"); }</p><p>[16:32] <binary64_> same happens with .Equals() as well as if user is not Admin</p><p>[16:32] <binary64_> ^-- that's the core of the problem, as far as i've found</p><p>[16:32] <binary64_> some knock on effects are:</p><p>[16:32] <binary64_> 1. if i do new User() before every timeshift, tvserver crashes after a few</p><p>[16:33] <binary64_> 2. with same user, tuning into same channel gives UnknownChannel (it is known)</p><p>[16:33] <tontsa> yeah it's a mess</p><p>[16:33] <binary64_> 3. a reboot or client crash means problem #1</p><p>[16:34] <binary64_> can't we just override the equality operator?</p><p>[16:34] <binary64_> also, makes no difference if i StopTimeshifting before starting</p><p>[16:34] <binary64_> can this be mantis'ed please? i think i've done a fair amount of pre-research into it</p><p>[16:35] <binary64_> instead of letting .net compare the two objects.. make it compare the Username string inside</p><p>[16:35] <tontsa> is there some coherent forum thread about it?</p><p>[16:35] <binary64_> no, only part of another thread (confusing)</p><p>[16:35] <binary64_> i'll start one now</p></blockquote><p></p>
[QUOTE="binary64, post: 277600, member: 23446"] I'm using the latest-but-one tv server (not MP client). If I do: (cross posted from this *post* on [url]https://forum.team-mediaportal.com/newcomers-forum-240/my-thread-questions-about-tvengine3-api-39424/#post268121[/url] thread) user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card); the results are: NoVideoAudioDetected, UnknownChannel, UnknownChannel (incorrect/bug imo) note: the channelid 33 is off-air However, user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card); user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card); user = new TvControl.User("Test", true); result = TvControl.RemoteControl.Instance.StartTimeShifting (ref user, 33, out card); the results are: NoVideoAudioDetected, NoVideoAudioDetected, NoVideoAudioDetected (correct imo) The reason I'm doing this, is when user idles on an off-air channel, i am polling it every few seconds so that when the channel finally comes back on air, it immedately starts playing. Thanks! Update: [16:30] <binary64_> just been looking more into this TvControl.User problem/bug [16:31] <binary64_> if (new User("fred", true) != new User("fred", true)) { MessageBox.Show("this fires, wrongfully imho"); } [16:32] <binary64_> same happens with .Equals() as well as if user is not Admin [16:32] <binary64_> ^-- that's the core of the problem, as far as i've found [16:32] <binary64_> some knock on effects are: [16:32] <binary64_> 1. if i do new User() before every timeshift, tvserver crashes after a few [16:33] <binary64_> 2. with same user, tuning into same channel gives UnknownChannel (it is known) [16:33] <tontsa> yeah it's a mess [16:33] <binary64_> 3. a reboot or client crash means problem #1 [16:34] <binary64_> can't we just override the equality operator? [16:34] <binary64_> also, makes no difference if i StopTimeshifting before starting [16:34] <binary64_> can this be mantis'ed please? i think i've done a fair amount of pre-research into it [16:35] <binary64_> instead of letting .net compare the two objects.. make it compare the Username string inside [16:35] <tontsa> is there some coherent forum thread about it? [16:35] <binary64_> no, only part of another thread (confusing) [16:35] <binary64_> i'll start one now [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
TvControl.User() is not proper
Contact us
RSS
Top
Bottom