                var playerParams = {
                    mediaSource: source,
                    mediaFileExtension: fileExt,
                    autoPlay: false,
                    embedModePreview: true,
                    previewImageSource: previewImage
                };

                EnsureScript("mediaplayer.js", typeof ($_global_mediaplayer), function () {
                    var mimeType = mediaPlayer.tryGetMimeTypeFromFileExtension(playerParams.mediaFileExtension);

                    var s