diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2008-01-08 15:39:39 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2008-01-08 15:39:39 (GMT) |
commit | 75eb370e7292c5899fdc321bc4e672014d53c5f2 (patch) | |
tree | aa89e49b3f87c028e6220ace1c6c9886bfd2681a /model.py | |
parent | 2c50c3545e90b8c0e5e100e99f2608af180f7fed (diff) |
switching media fixes much more robust
git-svn-id: http://mediamods.com/public-svn/camera-activity/tags/50@1006 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -296,10 +296,10 @@ class Model: #prep the ui for your return self.ca.ui.LAST_MODE = -1 self.ca.ui.TRANSCODING = False - self.ca.ui.updateVideoComponents() #resume live video from the camera (if the activity is active) - if (self.ca.props.active): + if (self.ca.ui.ACTIVE): + self.ca.ui.updateVideoComponents() self.ca.glive.play() self.ca.ui.progressWindow.updateProgress( 0, "" ) @@ -307,6 +307,19 @@ class Model: self.setUpdating( False ) + def abandonRecording( self ): + + self.ca.ui.LAST_MODE = -1 + self.ca.ui.TRANSCODING = False + self.ca.ui.completeTimer() + self.ca.ui.completeCountdown() + self.setRecording(False) + + self.ca.ui.progressWindow.updateProgress( 0, "" ) + + self.ca.glive.abandonMedia() + + def stoppedRecordingVideo( self ): self.setUpdating( False ) |