     }
 
     private function netStatusHandler(event:NetStatusEvent):void {
-      ExternalInterface.call('console.log', '-> ' + event.info.code);
       if (playbackState == "ENDED") {
         return;
       } else if (event.info.code == "NetStream.Buffer.Full") {

      }
    }

    private function playerPlay(url:String):void {
      if (!mediaElement) {
        ExternalInterface.call('console.log', 'player play, no mediaelement');
        playbackState = "PLAYING_BUFFERING";
        _triggerEvent('statechanged');
        mediaElement = mediaFactory.createMediaElement(new URLResource(url));


    private function onFinish(event:TimeEvent):void {
      mediaPlayer.stop();
      playbackState = 'ENDED';
      _triggerEvent('statechanged');
    }
