             _duration = event.mediatime.duration;
             _media_position = event.mediatime.position;
             if (ExternalInterface.available) {
-                ExternalInterface.call("onPosition", event.mediatime);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onPosition", ExternalInterface.objectID, event.mediatime);
+                } else {
+                    ExternalInterface.call("onPosition", event.mediatime);
+                }
             }
 
             var videoWidth : int = _video ? _video.videoWidth : _stageVideo.videoWidth;

                    _videoWidth = videoWidth;
                    _resize();
                    if (ExternalInterface.available) {
                        ExternalInterface.call("onVideoSize", _videoWidth, _videoHeight);
                    }
                }
            }

            }

            if (ExternalInterface.available) {
                if(_externalEventsMode === 1) {
                    ExternalInterface.call("flashlsEvents.onManifest", ExternalInterface.objectID, _duration);
                } else {
                    ExternalInterface.call("onManifest", _duration);
                }
            }
        };

