zap to the recording channel... otherwise user sees a black screen
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 23 Dec 2005 03:09:27 +0000 (03:09 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 23 Dec 2005 03:09:27 +0000 (03:09 +0000)
RecordTimer.py

index 7088bb4..37aecdb 100644 (file)
@@ -102,6 +102,7 @@ class RecordTimerEntry(timer.TimerEntry):
                        if self.prepareOK:
                                self.record_service.stop()
                                self.record_service = None
                        if self.prepareOK:
                                self.record_service.stop()
                                self.record_service = None
+                               
                                print "Timer successfully ended"
                        else:
                                print "prepare failed, thus nothing was recorded."
                                print "Timer successfully ended"
                        else:
                                print "prepare failed, thus nothing was recorded."
@@ -112,11 +113,13 @@ class RecordTimerEntry(timer.TimerEntry):
 
        def failureCB(self, answer):
                if answer == True:
 
        def failureCB(self, answer):
                if answer == True:
-                       NavigationInstance.instance.stopUserServices()
+                       #NavigationInstance.instance.stopUserServices()
+                       print "[RecordTimer] zapping to", self.service_ref
+                       NavigationInstance.instance.playService(self.service_ref.ref)
                        self.activate(self.EventPrepare)
                        self.activate(self.EventPrepare)
+
                        if self.wantStart:
                                print "post-activating record"
                        if self.wantStart:
                                print "post-activating record"
-                               NavigationInstance.instance.playService(self.serviceref)
                                self.activate(self.EventStart)
                else:
                        print "user killed record"
                                self.activate(self.EventStart)
                else:
                        print "user killed record"