             ExternalInterface.addCallback("getmaxBufferLength",_getmaxBufferLength);
             ExternalInterface.addCallback("getbufferLength",_getbufferLength);
             // Connect calls to JS.
-            ExternalInterface.addCallback("load",_load);
-            ExternalInterface.addCallback("play",_play);
-            ExternalInterface.addCallback("pause",_pause);
-            ExternalInterface.addCallback("resume",_resume);
-            ExternalInterface.addCallback("seek",_seek);
-            ExternalInterface.addCallback("stop",_stop);
-            ExternalInterface.addCallback("volume",_volume);
-            ExternalInterface.addCallback("setLevel",_setLevel);
-            ExternalInterface.addCallback("setmaxBufferLength",_setmaxBufferLength);
+            ExternalInterface.addCallback("playerLoad",_load);
+            ExternalInterface.addCallback("playerPlay",_play);
+            ExternalInterface.addCallback("playerPause",_pause);
+            ExternalInterface.addCallback("playerResume",_resume);
+            ExternalInterface.addCallback("playerSeek",_seek);
+            ExternalInterface.addCallback("playerStop",_stop);
+            ExternalInterface.addCallback("playerVolume",_volume);
+            ExternalInterface.addCallback("playerSetLevel",_setLevel);
+            ExternalInterface.addCallback("playerSetmaxBufferLength",_setmaxBufferLength);
             setTimeout(_pingJavascript,50);
         };
 

                ExternalInterface.call("onError",event.message);
            }
        };
        
        private function _fragmentHandler(event:HLSEvent):void {
            if (ExternalInterface.available) {
                ExternalInterface.call("onFragment",event.metrics.bandwidth,event.metrics.level,event.metrics.screenwidth);
            }
        };
        
        private function _manifestHandler(event:HLSEvent):void {
            if (ExternalInterface.available) {
                ExternalInterface.call("onManifest",event.levels[0].duration);

    }


}
