View Single Post
Old 2008-05-22, 01:45   #5 (permalink)
binary64
Portal Member
 
Join Date: Jul 2006
Posts: 102
Thanks: 2
Thanked 1 Time in 1 Post


Default

New Issue
=========

If I do:

result = TvControl.RemoteControl.Instance.StartTimeShifting (ref m_user, 33, out card);
result = TvControl.RemoteControl.Instance.StartTimeShifting (ref m_user, 33, out card);
result = TvControl.RemoteControl.Instance.StartTimeShifting (ref m_user, 33, out card);

the results are: NoVideoAudioDetected, UnknownChannel, UnknownChannel (incorrect/bug imo)

notes:
* yes, the channel is off-air at this time
* m_user means it's a member field, in ctor, m_user = new User("Test", true);

However,
TvControl.User methodlocal_user;
methodlocal_user = new TvControl.User("Test", true);
result = TvControl.RemoteControl.Instance.StartTimeShifting (ref methodlocal_user, 33, out card);
methodlocal_user = new TvControl.User("Test", true);
result = TvControl.RemoteControl.Instance.StartTimeShifting (ref methodlocal_user, 33, out card);
methodlocal_user = new TvControl.User("Test", true);
result = TvControl.RemoteControl.Instance.StartTimeShifting (ref methodlocal_user, 33, out card);

the results are: NoVideoAudioDetected, NoVideoAudioDetected, NoVideoAudioDetected (correct imo)


I would prefer to use the member field method (this.user, created only in ctor). Any ideas why this difference is happening? Is this a bug or a .Net thing I don't know about?

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!
binary64 is offline   Reply With Quote