ITDebugLog(@"Showing player interface.");
NS_DURING
[[self currentRemote] showPrimaryInterface];
NS_HANDLER
[self networkError:localException];
NS_ENDHANDLER
ITDebugLog(@"Showing player interface.");
NS_DURING
[[self currentRemote] showPrimaryInterface];
NS_HANDLER
[self networkError:localException];
NS_ENDHANDLER
if (result == 1) {
[[PreferencesController sharedPrefs] resetRemotePlayerTextFields];
currentRemote = [[[networkController networkObject] remote] retain];
if (result == 1) {
[[PreferencesController sharedPrefs] resetRemotePlayerTextFields];
currentRemote = [[[networkController networkObject] remote] retain];
[refreshTimer invalidate];
refreshTimer = [[NSTimer scheduledTimerWithTimeInterval:([networkController isConnectedToServer] ? 10.0 : 0.5)
target:self
[refreshTimer invalidate];
refreshTimer = [[NSTimer scheduledTimerWithTimeInterval:([networkController isConnectedToServer] ? 10.0 : 0.5)
target:self
ITDebugLog(@"Remote application launched.");
playerRunningState = ITMTRemotePlayerRunning;
[[self currentRemote] begin];
ITDebugLog(@"Remote application launched.");
playerRunningState = ITMTRemotePlayerRunning;
[[self currentRemote] begin];
ITDebugLog(@"Remote application terminated.");
playerRunningState = ITMTRemotePlayerNotRunning;
[[self currentRemote] halt];
ITDebugLog(@"Remote application terminated.");
playerRunningState = ITMTRemotePlayerNotRunning;
[[self currentRemote] halt];