MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Get Support


Get Support Problems with the TV-Server or Client? Post them in here.

Reply
 
Thread Tools Display Modes
Old 2008-06-23, 16:41   #1 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 102
Thanks: 2
Thanked 1 Time in 1 Post


Exclamation TvControl.User() is not proper

I'm using the latest-but-one tv server (not MP client).

If I do: (cross posted from this *post* on my thread of questions about tvengine3 api 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
binary64 is offline   Reply With Quote
Old 2008-07-07, 02:54   #2 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 102
Thanks: 2
Thanked 1 Time in 1 Post


Default

another bug..

i watched tv on my custom client a bit. it sends heartbeat every 9 secs. i terminated the client. then 30 mins later loaded it again. of course it uses the same string username. but this time, IController::GetTvStoppedReason was returning HeartBeatTimeOut - even after multiple beats sent by 2nd load. it went away after a channel change.

this could point to the fact that some code does if (user1.Name == user2.Name) and some does if (user1 == user2)

Last edited by binary64; 2008-07-07 at 02:57.
binary64 is offline   Reply With Quote
Old 2008-07-07, 07:49   #3 (permalink)
Portal Developer
 
gibman's Avatar
 
Join Date: Oct 2006
Location: Aarhus
Posts: 682
Thanks: 4
Thanked 58 Times in 45 Posts

Country:

My System

Default

Why not try and root out where the user == user if statements are located and let us know - by attaching a diff. or patch file.
This would help a lot.
maybe override the equals method.

/gibman
__________________
"It's all a big foodchain.
We eat shit and shit eats us."
gibman is offline   Reply With Quote
Reply

Bookmarks

Tags
proper, tvcontroluser

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get Really Proper Gapless and Playlists Eddy5 Support 2 2007-08-07 15:22
WebEPG and proper Title-casing in Greek arion_p WebEPG 6 2007-07-18 23:12
XMLTV not showing proper show times hobbes487 WebEPG 11 2006-05-18 15:06
How to keep the proper video capture settings? weeweewee Codecs, External Players 0 2005-12-29 12:21
Proper aspect ratios for oddball tv's. Anonymous Tips and Tricks 0 2004-11-02 19:05


All times are GMT +1. The time now is 23:23.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress