Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorerikb <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)
commit75eb370e7292c5899fdc321bc4e672014d53c5f2 (patch)
treeaa89e49b3f87c028e6220ace1c6c9886bfd2681a /model.py
parent2c50c3545e90b8c0e5e100e99f2608af180f7fed (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.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/model.py b/model.py
index ade2626..586774f 100644
--- a/model.py
+++ b/model.py
@@ -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 )