import flash.media.Camera; import flash.media.Microphone; import flash.net.SharedObject; import flash.media.SoundCodec; this.counterDelegate = new LzDelegate( this, "count" ); this.timerIsRunning = true; this.timerWasUnmutedTheFirstTime = true; lz.Timer.addTimer( this.counterDelegate, 1000 ); if (this.recordingsCounter != 0){ this.recordingsCounter -= 1; lz.Timer.addTimer( this.counterDelegate, 1000 ); this._text._info.setAttribute("text",""+this.recordingsCounter+" sec"); } else { this._text.setAttribute("visibility","hidden"); this.doStop(); this.timerIsRunning = false; this.doPlay(); } if (!this.timerIsRunning) { this.startTimer(); } if (this.isRunning) { this.isRunning = false; var videoview = this._publisher._chatvideoinner._videostream; this._btnStartRecording.setAttribute("enabled",true); videoview._stop(); this.doPlay(); } var videoviewViewer = this._viewer._chatvideoinner._videostream; videoviewViewer._stop(); import flash.media.Camera; import flash.net.SharedObject; import flash.media.Microphone; import flash.net.SharedObject; parent._level_meter.startLevel(); parent.doninitalize(); if ($debug) Debug.write("sendCameraStatus -1- ",camStatus); if (camStatus == "Camera.Unmuted") { parent.startTimerToCount(); } if ($debug) Debug.write("sendMicroStatus -1- ",micStatus); if (micStatus == "Microphone.Unmuted") { parent.startTimerToCount(); } parent.doPlay(); this._leveldel.register(lz.Idle, "onidle"); this._leveldel.unregisterAll(); this.setNewLevel(0);