       mediaPlayer.stop();
     }
 
-    private function onTimeUpdated(event:TimeEvent):void {
-      _triggerEvent('progress');
-      _triggerEvent('timeupdate');
+    private function playerVolume(level:Number):void {
+      mediaPlayer.volume = level;
+    }
+
+   private function getState():String {
+      return playbackState;
     }
 
     private function getPosition():Number {

      mediaContainer = new MediaContainer();
      setupCallbacks();
      setupGetters();
      ExternalInterface.call('console.log', 'clappr rtmp 0.4-alpha');
      _triggerEvent('flashready');
    }


      return mediaPlayer.duration;
    }

    private function onTimeUpdated(event:TimeEvent):void {
      _triggerEvent('progress');
      _triggerEvent('timeupdate');
    }

    private function _triggerEvent(name: String):void {
      ExternalInterface.call('Clappr.Mediator.trigger("' + playbackId + ':' + name +'")');
    }
  }
}
