{"version":3,"sources":["kendo.mediaplayer.js"],"names":["f","define","$","undefined","kendo","window","END","PAUSE","PLAY","READY","TIMECHANGE","VOLUMECHANGE","FULLSCREEN_ENTER","FULLSCREEN_EXIT","MUTE","LOW_VOLUME","HIGH_VOLUME","VIDEO_QUALITY","STATE_PLAY","STATE_PAUSE","TITLEBAR","TITLE","TOOLBAR","SLIDER","VOLUME_SLIDER","MEDIA","OVERLAY","YTPLAYER","DOT","ui","ns","baseTime","Date","timeZoneSec","getTimezoneOffset","Widget","isArray","timeFormats","shortTime","longTime","template","proxy","keys","templates","htmlPlayer","titleBar","toolBar","youtubePlayer","toolBarTime","slider","volumeSlider","qualityDropDown","toolTip","MediaPlayer","extend","init","element","options","this","wrapper","fn","call","addClass","_currentIndex","_createTitlebar","_createToolbar","_createDropDown","_createSlider","_createVolumeSlider","_timers","_aria","_navigatable","media","notify","events","name","autoPlay","autoRepeat","volume","fullScreen","mute","navigatable","forwardSeek","messages","pause","play","unmute","quality","fullscreen","_msToTime","ms","time","getTime","setSeconds","_timeToSec","curTime","_titleBar","find","length","append","sliderElement","_slider","_sliderDragChangeHandler","_sliderDragChange","_sliderDraggingHandler","_sliderDragging","Slider","smallStep","tickPlacement","showButtons","change","slide","tooltip","dragHandleTitle","volumeSliderElement","_volumeSlider","_volumeDraggingHandler","_volumeDragging","_volumeChangeHandler","_volumeChange","width","min","max","value","enabled","_resetTime","_youTubeVideo","_ytmedia","seekTo","_media","currentTime","_mediaTimeUpdate","grep","_toolBar","items","e","_currentUrl","source","url","_isYouTubeUrl","match","_setPlayerUrl","initialized","oldPlayer","stop","toggle","_initializePlayer","_videoOverlay","hide","loadVideoById","_getMediaId","_playStateToggle","cueVideoById","show","remove","attr","volumeSpan","fullScreenSpan","toolBarElement","_toolbarClickHandler","_toolbarClick","ToolBar","click","resizable","type","spriteCssClass","_volumeButton","parent","_fullscreenButton","_currentTimeElement","_durationElement","_playButtonSpan","_playButton","wrapAll","dropDownElement","data","_dropDownSelectHandler","_dropDownSelect","_dropDown","DropDownList","dataTextField","dataValueField","popup","position","origin","appendTo","animation","open","effects","duration","select","setDataSource","removeClass","list","item","index","muted","target","children","first","isPaused","hasClass","_isInFullScreen","_isDragging","that","sender","tzOffset","_sliderChangeFired","_seekBarLastPosition","setTimeout","trigger","_preventPlay","_changeVolumeButtonImage","volumeButton","volumeElement","cssClass","substring","lastIndexOf","getCurrentTime","timeInMs","text","toString","_timeFormat","isPlaying","is","_mediaEnded","_mediaPlay","_mediaReady","_mediaDurationChange","durationTime","getDuration","getHours","setOptions","_distance","Math","round","_resize","_isFirstRun","_createYoutubePlayer","_mediaTimeUpdateHandler","_mediaDurationChangeHandler","prepend","_ytPlayer","css","height","YT","Player","_configurePlayer","getScript","_youtubeApiReadyHandler","_youtubeApiReady","onYouTubeIframeAPIReady","_poll","callback","interval","context","clearTimeout","callLater","player","vars","autoplay","wmode","controls","rel","showinfo","_onYouTubePlayerReady","onYouTubePlayerReady","_onPlayerStateChangeHandler","_onPlayerStateChange","onPlayerStateChange","videoId","playerVars","onReady","onStateChange","event","getIframe","style","_updateTitle","titlebar","title","_paused","setVolume","_uiDisplay","result","regExp","_mouseClick","_mouseMoveHandler","_mouseMove","_mouseInHandler","_mouseIn","_mouseOutHandler","_mouseOut","on","_createHtmlPlayer","_mouseClickHanlder","_mediaEndedHandler","_mediaCanPlayHandler","_mediaPlayHandler","after","ontimeupdate","ondurationchange","oncanplay","onplay","onended","_mouseIdle","state","animationSpeed","uiElements","add","fadeIn","fadeOut","destroy","off","_keyDownHandler","_fullscreenHandler","src","_mouseMoveTimer","seek","seconds","playVideo","stopVideo","pauseVideo","toolbar","dropdown","enterFullScreen","get","_width","_height","top","left","requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen","document","cancelFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msCancelFullscreen","exitFullscreen","msExitFullscreen","_volume","isMuted","unMute","getVolume","isEnded","getPlayerState","ended","_mediaData","_fullscreen","_keyDown","isFullScreen","mozFullScreen","webkitIsFullScreen","resize","preventDefault","keyCode","SPACEBAR","ENTER","_error","_progress","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,qBACH,eACA,gBACA,qBACA,iBACDD,IACL,WAy1BE,MA50BC,UAAUE,EAAGC,GAAb,GACOC,GAAQC,OAAOD,MAAOE,EAAM,MAAOC,EAAQ,QAASC,EAAO,OAAQC,EAAQ,QAASC,EAAa,aAAcC,EAAe,eAAgBC,EAAmB,uBAAwBC,EAAkB,sBAAuBC,EAAO,kBAAmBC,EAAa,iBAAkBC,EAAc,kBAAmBC,EAAgB,wBAAyBC,EAAa,WAAYC,EAAc,YAAaC,EAAW,yBAA0BC,EAAQ,UAAWC,EAAU,wBAAyBC,EAAS,wBAAyBC,EAAgB,uBAAwBC,EAAQ,sBAAuBC,EAAU,wBAAyBC,EAAW,mBAAoBC,EAAM,IAAKC,EAAKzB,EAAMyB,GAAIC,EAAK,oBAAqBC,EAAW,GAAIC,MAAK,KAAM,EAAG,GAAIC,EAA6C,GAA/BF,EAASG,oBAA0BC,EAAS/B,EAAMyB,GAAGM,OAAQC,EAAUlC,EAAEkC,QAASC,GACh1BC,UAAW,QACXC,SAAU,YACXC,EAAWpC,EAAMoC,SAAUC,EAAQvC,EAAEuC,MAAOC,EAAOtC,EAAMsC,KAAMC,GAC9DC,WAAY,iBAAoBnB,EAAQ,cACxCoB,SAAUL,EAAS,eAAkBpB,EAAW,iCAAuCC,EAAQ,8BAC/FyB,QAAS,eAAkBxB,EAAU,YACrCyB,cAAe,eAAkBpB,EAAW,YAC5CqB,YAAa,iHACbC,OAAQ,iBAAoB1B,EAAS,iCACrC2B,aAAc,iBAAoB1B,EAAgB,qBAClD2B,gBAAiB,iBAAoBlC,EAAgB,6BACrDmC,QAAS,oDAEbC,EAAclB,EAAOmB,QACrBC,KAAM,SAAUC,EAASC,GACrBC,KAAKC,QAAUzD,E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BlB,SAASmB,kBAC7EvS,MAAKgO,YAAW,GAChBhO,KAAK2C,QAAQ6P,SACRH,IACDrS,KAAKC,QAAQsC,KAAK,iCAAiC+F,YAAYnL,GAAiBiD,SAASlD,GACzF8C,KAAKqB,YAAW,KAGxB+Q,SAAU,SAAUvN,GAahB,GAZAA,EAAE4N,iBACE5N,EAAE6N,UAAY1T,EAAK2T,WACf3S,KAAKqK,YACLrK,KAAK0B,QAEL1B,KAAK2B,QAGTkD,EAAE6N,UAAY1T,EAAK4T,QACnB5S,KAAKC,QAAQsC,KAAK,iCAAiC+F,YAAYpL,GAAkBkD,SAASjD,GAC1F6C,KAAKqB,YAAW,IAEF,KAAdwD,EAAE6N,QAAgB,CAClB,GAAIhK,GAAQ1I,KAAKsB,MACjBtB,MAAKsB,MAAMoH,KAGnBmK,OAAQ,aAERC,UAAW,cAGf3U,GAAG4U,OAAOpT,IACZhD,OAAOD,MAAMsW,QACRrW,OAAOD,OACG,kBAAXH,SAAyBA,OAAO0W,IAAM1W,OAAS,SAAU2W,EAAIC,EAAIC,IACtEA,GAAMD","file":"kendo.mediaplayer.min.js","sourcesContent":["/*!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('kendo.mediaplayer', [\n 'kendo.slider',\n 'kendo.toolbar',\n 'kendo.dropdownlist',\n 'kendo.tooltip'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'mediaplayer',\n name: 'MediaPlayer',\n category: 'web',\n description: '',\n depends: [\n 'slider',\n 'toolbar',\n 'dropdownlist',\n 'tooltip'\n ]\n };\n (function ($, undefined) {\n var kendo = window.kendo, END = 'end', PAUSE = 'pause', PLAY = 'play', READY = 'ready', TIMECHANGE = 'timeChange', VOLUMECHANGE = 'volumeChange', FULLSCREEN_ENTER = 'k-i-fullscreen-enter', FULLSCREEN_EXIT = 'k-i-fullscreen-exit', MUTE = 'k-i-volume-mute', LOW_VOLUME = 'k-i-volume-low', HIGH_VOLUME = 'k-i-volume-high', VIDEO_QUALITY = 'k-mediaplayer-quality', STATE_PLAY = 'k-i-play', STATE_PAUSE = 'k-i-pause', TITLEBAR = 'k-mediaplayer-titlebar', TITLE = 'k-title', TOOLBAR = 'k-mediaplayer-toolbar', SLIDER = 'k-mediaplayer-seekbar', VOLUME_SLIDER = 'k-mediaplayer-volume', MEDIA = 'k-mediaplayer-media', OVERLAY = 'k-mediaplayer-overlay', YTPLAYER = 'k-mediaplayer-yt', DOT = '.', ui = kendo.ui, ns = '.kendoMediaPlayer', baseTime = new Date(1970, 0, 1), timeZoneSec = baseTime.getTimezoneOffset() * 60, Widget = kendo.ui.Widget, isArray = $.isArray, timeFormats = {\n shortTime: 'mm:ss',\n longTime: 'HH:mm:ss'\n }, template = kendo.template, proxy = $.proxy, keys = kendo.keys, templates = {\n htmlPlayer: '',\n titleBar: template('
Video Title
'),\n toolBar: '
',\n youtubePlayer: '
',\n toolBarTime: '00:00:00 / 00:00:00',\n slider: '',\n volumeSlider: '',\n qualityDropDown: '',\n toolTip: '#= kendo.toString(new Date(value), \\'HH:mm:ss\\') #'\n };\n var MediaPlayer = Widget.extend({\n init: function (element, options) {\n this.wrapper = $(element);\n Widget.fn.init.call(this, element, options);\n this.wrapper.addClass('k-mediaplayer k-widget');\n options = this.options;\n this._currentIndex = 0;\n this._createTitlebar();\n this._createToolbar();\n this._createDropDown();\n this._createSlider();\n this._createVolumeSlider();\n this._timers = {};\n this._aria();\n this._navigatable();\n if (options.media) {\n this.media(this.options.media);\n }\n kendo.notify(this);\n },\n events: [\n END,\n PAUSE,\n PLAY,\n READY,\n TIMECHANGE,\n VOLUMECHANGE\n ],\n options: {\n name: 'MediaPlayer',\n autoPlay: false,\n autoRepeat: false,\n volume: 100,\n fullScreen: false,\n mute: false,\n navigatable: false,\n forwardSeek: true,\n media: null,\n messages: {\n 'pause': 'Pause',\n 'play': 'Play',\n 'mute': 'Mute',\n 'unmute': 'Unmute',\n 'quality': 'Quality',\n 'fullscreen': 'Full Screen'\n }\n },\n _msToTime: function (ms) {\n var time = new Date(baseTime.getTime());\n time.setSeconds(ms);\n return time;\n },\n _timeToSec: function (time) {\n var curTime = new Date(time).getTime();\n return curTime / 1000;\n },\n _createTitlebar: function () {\n this._titleBar = this.wrapper.find(DOT + TITLEBAR);\n if (this._titleBar.length === 0) {\n this._titleBar = this.wrapper.find(DOT + TITLEBAR);\n this.wrapper.append(templates.titleBar);\n this._titleBar = this.wrapper.find(DOT + TITLEBAR);\n }\n },\n _createSlider: function () {\n var sliderElement = this.wrapper.find(DOT + SLIDER);\n if (!this._slider) {\n this._sliderDragChangeHandler = proxy(this._sliderDragChange, this);\n this._sliderDraggingHandler = proxy(this._sliderDragging, this);\n sliderElement = this.wrapper.find(DOT + SLIDER);\n this._slider = new ui.Slider(sliderElement[0], {\n smallStep: 1000,\n tickPlacement: 'none',\n showButtons: false,\n change: this._sliderDragChangeHandler,\n slide: this._sliderDraggingHandler,\n tooltip: { template: templates.toolTip },\n dragHandleTitle: ''\n });\n }\n },\n _createVolumeSlider: function () {\n var volumeSliderElement = this.wrapper.find(DOT + VOLUME_SLIDER);\n if (!this._volumeSlider) {\n this._volumeDraggingHandler = proxy(this._volumeDragging, this);\n this._volumeChangeHandler = proxy(this._volumeChange, this);\n volumeSliderElement = $(DOT + VOLUME_SLIDER);\n volumeSliderElement.width(87);\n this._volumeSlider = new ui.Slider(volumeSliderElement[0], {\n smallStep: 1,\n min: 0,\n max: 100,\n value: this.options.volume,\n slide: this._volumeDraggingHandler,\n change: this._volumeChangeHandler,\n tickPlacement: 'none',\n showButtons: false,\n tooltip: { enabled: false },\n dragHandleTitle: ''\n });\n }\n },\n _resetTime: function () {\n if (this._youTubeVideo) {\n this._ytmedia.seekTo(0, true);\n } else {\n this._media.currentTime = 0;\n }\n this._mediaTimeUpdate();\n $.grep(this._toolBar.options.items, function (e) {\n return !!e.template;\n }).template = templates.toolBarTime;\n },\n _currentUrl: function () {\n var media = this.media();\n return isArray(media.source) ? media.source[this._currentIndex].url : media.source;\n },\n _isYouTubeUrl: function () {\n return !!this._currentUrl().match('youtube.com/|youtu.be/');\n },\n _setPlayerUrl: function () {\n var oldPlayer = this._youTubeVideo;\n this.stop();\n this._youTubeVideo = this._isYouTubeUrl();\n if (oldPlayer !== this._youTubeVideo) {\n this.wrapper.find(DOT + YTPLAYER).toggle();\n this.wrapper.find(DOT + MEDIA).toggle();\n }\n var initialized = this._media || this._ytmedia;\n this._initializePlayer();\n if (initialized) {\n this.mute(this.mute());\n this.volume(this.volume());\n }\n if (!this._youTubeVideo) {\n this._videoOverlay.show();\n this.wrapper.find(DOT + MEDIA + ' > source').remove();\n this.wrapper.find(DOT + MEDIA).attr('src', this._currentUrl());\n if (this.options.autoPlay) {\n this.play();\n }\n } else if (this._ytmedia) {\n if (this._videoOverlay) {\n this._videoOverlay.hide();\n }\n if (this.options.autoPlay) {\n this._ytmedia.loadVideoById(this._getMediaId());\n this._playStateToggle(true);\n } else {\n this._ytmedia.cueVideoById(this._getMediaId());\n this._playStateToggle(true);\n }\n }\n },\n _createToolbar: function () {\n var toolBarElement = this.wrapper.find(DOT + TOOLBAR);\n if (toolBarElement.length === 0) {\n this._toolbarClickHandler = proxy(this._toolbarClick, this);\n this.wrapper.append(templates.toolBar);\n toolBarElement = $(DOT + TOOLBAR);\n toolBarElement.width($(DOT + MEDIA).width());\n this._toolBar = new ui.ToolBar(toolBarElement, {\n click: this._toolbarClickHandler,\n resizable: false,\n items: [\n { template: templates.slider },\n {\n type: 'button',\n spriteCssClass: 'k-icon k-font-icon k-i-play'\n },\n { template: templates.toolBarTime },\n {\n type: 'button',\n spriteCssClass: 'k-icon k-font-icon k-i-volume-high'\n },\n { template: templates.volumeSlider },\n { template: templates.qualityDropDown },\n {\n type: 'button',\n spriteCssClass: 'k-icon k-font-icon k-i-fullscreen-enter'\n }\n ]\n });\n var volumeSpan = toolBarElement.find('span[class*=\"k-i-volume\"]');\n this._volumeButton = volumeSpan.parent('a');\n var fullScreenSpan = toolBarElement.find('span[class*=\"k-i-fullscreen\"]');\n this._fullscreenButton = fullScreenSpan.parent('a');\n this._volumeButton.attr('title', this.options.mute ? this.options.messages.unmute : this.options.messages.mute);\n this._volumeButton.attr('aria-label', this.options.mute ? this.options.messages.unmute : this.options.messages.mute);\n this._fullscreenButton.attr('title', this.options.messages.fullscreen);\n this._fullscreenButton.attr('aria-label', this.options.messages.fullscreen);\n toolBarElement.width('auto');\n this._currentTimeElement = toolBarElement.find('.k-mediaplayer-currenttime');\n this._durationElement = toolBarElement.find('.k-mediaplayer-duration');\n this._playButtonSpan = toolBarElement.find('span[class*=\"k-i-play\"]');\n this._playButton = this._playButtonSpan.parent('a');\n if (this.options.autoPlay) {\n this._playStateToggle(true);\n }\n $([\n this._volumeButton[0],\n toolBarElement.find('.k-mediaplayer-volume').parent()[0],\n toolBarElement.find('.k-mediaplayer-quality').parent()[0],\n this._fullscreenButton[0]\n ]).wrapAll('
');\n $('.k-button', toolBarElement).addClass('k-button-bare');\n }\n },\n _createDropDown: function () {\n var dropDownElement = this.wrapper.find(DOT + VIDEO_QUALITY);\n var media = this.media();\n if (typeof dropDownElement.data('kendoDropDownList') === 'undefined') {\n this._dropDownSelectHandler = proxy(this._dropDownSelect, this);\n this._dropDown = new ui.DropDownList(dropDownElement, {\n dataTextField: 'quality',\n dataValueField: 'url',\n popup: {\n position: 'bottom',\n origin: 'top',\n appendTo: this.wrapper\n },\n animation: {\n open: {\n effects: 'slideIn:up',\n duration: 1\n }\n },\n select: this._dropDownSelectHandler\n });\n if (media && isArray(media.source)) {\n this._dropDown.setDataSource(media.source);\n this._dropDown.select(0);\n }\n this._dropDown.wrapper.addClass('k-button k-button-bare');\n this._dropDown.wrapper.attr('title', this.options.messages.quality).hide();\n this._dropDown.wrapper.find('span.k-i-arrow-s').removeClass('k-i-arrow-s').addClass('k-font-icon k-i-HD');\n this._dropDown.list.addClass('k-quality-list');\n }\n },\n _dropDownSelect: function (e) {\n if (this._currentIndex !== e.item.index()) {\n this._currentIndex = e.item.index();\n this._setPlayerUrl();\n }\n },\n _toolbarClick: function (e) {\n var target = $(e.target).children().first();\n var isPaused = target.hasClass(STATE_PLAY);\n if (!this.media()) {\n return;\n }\n if (target.hasClass(STATE_PLAY) || target.hasClass(STATE_PAUSE)) {\n if (isPaused) {\n this.play();\n } else {\n this.pause();\n }\n }\n if (target.hasClass(FULLSCREEN_ENTER) || target.hasClass(FULLSCREEN_EXIT)) {\n if (this._isInFullScreen) {\n target.removeClass(FULLSCREEN_EXIT).addClass(FULLSCREEN_ENTER);\n this.fullScreen(false);\n } else {\n target.removeClass(FULLSCREEN_ENTER).addClass(FULLSCREEN_EXIT);\n this.fullScreen(true);\n }\n }\n if (target.hasClass(MUTE) || target.hasClass(LOW_VOLUME) || target.hasClass(HIGH_VOLUME)) {\n var muted = this.mute();\n this.mute(!muted);\n }\n },\n _sliderDragging: function () {\n if (!this.media()) {\n return;\n }\n this._isDragging = true;\n },\n _sliderDragChange: function (e) {\n var that = this;\n var slider = e.sender;\n var tzOffset = timeZoneSec * 1000;\n if (!this.media()) {\n return;\n }\n that._sliderChangeFired = true;\n that._isDragging = false;\n if (!this.options.forwardSeek && slider.value() > this._seekBarLastPosition) {\n setTimeout(function () {\n slider.value(that._seekBarLastPosition);\n }, 1);\n } else if (this._youTubeVideo) {\n that._ytmedia.seekTo(that._timeToSec(e.value - tzOffset));\n } else {\n that._media.currentTime = that._timeToSec(e.value - tzOffset);\n }\n that.trigger(TIMECHANGE);\n that._preventPlay = true;\n },\n _changeVolumeButtonImage: function (volume) {\n var volumeButton = this._volumeButton;\n var volumeElement = volumeButton.find('span');\n var cssClass = volumeElement.attr('class');\n cssClass = cssClass.substring(0, cssClass.lastIndexOf(' '));\n if (volume === 0) {\n volumeElement.attr('class', cssClass + ' ' + MUTE);\n volumeButton.attr('title', this.options.messages.unmute);\n volumeButton.attr('aria-label', this.options.messages.unmute);\n } else if (volume > 0 && volume < 51) {\n volumeElement.attr('class', cssClass + ' ' + LOW_VOLUME);\n volumeButton.attr('title', this.options.messages.mute);\n volumeButton.attr('aria-label', this.options.messages.mute);\n } else {\n volumeElement.attr('class', cssClass + ' ' + HIGH_VOLUME);\n volumeButton.attr('title', this.options.messages.mute);\n volumeButton.attr('aria-label', this.options.messages.mute);\n }\n },\n _volumeDragging: function (e) {\n if (!this.media()) {\n return;\n }\n this.volume(e.value);\n this._changeVolumeButtonImage(e.value);\n this.trigger(VOLUMECHANGE);\n },\n _volumeChange: function (e) {\n if (!this.media()) {\n return;\n }\n this.volume(e.value);\n this._changeVolumeButtonImage(e.value);\n this.trigger(VOLUMECHANGE);\n },\n _mediaTimeUpdate: function () {\n var currentTime = this._youTubeVideo ? this._ytmedia.getCurrentTime() : this._media.currentTime;\n var timeInMs = this._msToTime(currentTime);\n this._currentTimeElement.text(kendo.toString(timeInMs, this._timeFormat));\n if (!this._isDragging) {\n this._seekBarLastPosition = (currentTime + timeZoneSec) * 1000;\n this._slider.value(this._seekBarLastPosition);\n }\n return this.isPlaying();\n },\n _playStateToggle: function (play) {\n if (typeof play === 'undefined') {\n play = this._playButtonSpan.is(DOT + STATE_PLAY);\n }\n if (play) {\n this._playButtonSpan.removeClass(STATE_PLAY).addClass(STATE_PAUSE);\n this._playButton.attr('title', this.options.messages.pause);\n this._playButton.attr('aria-label', this.options.messages.pause);\n } else {\n this._playButtonSpan.removeClass(STATE_PAUSE).addClass(STATE_PLAY);\n this._playButton.attr('title', this.options.messages.play);\n this._playButton.attr('aria-label', this.options.messages.play);\n }\n },\n _mediaEnded: function () {\n this._playStateToggle(false);\n this._currentTimeElement.text(kendo.toString(this._msToTime(0), this._timeFormat));\n this._slider.value((0 + timeZoneSec) * 1000);\n this.trigger(END);\n },\n _mediaPlay: function () {\n this.trigger(PLAY);\n },\n _mediaReady: function () {\n this.trigger(READY);\n },\n _mediaDurationChange: function () {\n var durationTime = this._msToTime(this._youTubeVideo ? this._ytmedia.getDuration() : this._media.duration);\n this._timeFormat = durationTime.getHours() === 0 ? timeFormats.shortTime : timeFormats.longTime;\n this._durationElement.text(kendo.toString(durationTime, this._timeFormat));\n this._slider.setOptions({\n min: baseTime.getTime(),\n max: durationTime.getTime()\n });\n this._slider._distance = Math.round(this._slider.options.max - this._slider.options.min);\n this._slider._resize();\n if (!this._isFirstRun) {\n this._resetTime();\n this._isFirstRun = true;\n }\n },\n _createYoutubePlayer: function () {\n this._mediaTimeUpdateHandler = proxy(this._mediaTimeUpdate, this);\n this._mediaDurationChangeHandler = proxy(this._mediaDurationChange, this);\n this.wrapper.prepend(templates.youtubePlayer);\n this._ytPlayer = this.wrapper.find(DOT + YTPLAYER)[0];\n $(this._ytPlayer).css({\n width: this.wrapper.width(),\n height: this.wrapper.height()\n });\n if (!window.YT || !window.YT.Player) {\n $.getScript('https://www.youtube.com/iframe_api');\n this._youtubeApiReadyHandler = proxy(this._youtubeApiReady, this);\n window.onYouTubeIframeAPIReady = this._youtubeApiReadyHandler;\n } else {\n this._configurePlayer();\n }\n },\n _poll: function (name, callback, interval, context) {\n var that = this;\n if (that._timers[name] !== null) {\n clearTimeout(that._timers[name]);\n }\n that._timers[name] = setTimeout(function (context) {\n return function callLater() {\n if (callback.call(context)) {\n that._timers[name] = setTimeout(callLater, interval);\n }\n };\n }(context), interval);\n return that._timers[name];\n },\n _youtubeApiReady: function () {\n this._configurePlayer();\n },\n _configurePlayer: function () {\n var vars = {\n 'autoplay': +this.options.autoPlay,\n 'wmode': 'transparent',\n 'controls': 0,\n 'rel': 0,\n 'showinfo': 0\n };\n this._onYouTubePlayerReady = proxy(this._onYouTubePlayerReady, this);\n window.onYouTubePlayerReady = this._onYouTubePlayerReady;\n this._onPlayerStateChangeHandler = proxy(this._onPlayerStateChange, this);\n window.onPlayerStateChange = this._onPlayerStateChange;\n var player = new window.YT.Player(this.wrapper.find(DOT + YTPLAYER)[0], {\n height: this.wrapper.height(),\n width: this.wrapper.width(),\n videoId: this._getMediaId(),\n playerVars: vars,\n events: {\n 'onReady': this._onYouTubePlayerReady,\n 'onStateChange': this._onPlayerStateChangeHandler\n }\n });\n },\n _onYouTubePlayerReady: function (event) {\n this._ytmedia = event.target;\n this._ytmedia.getIframe().style.width = '100%';\n this._ytmedia.getIframe().style.height = '100%';\n this._youTubeVideo = true;\n this._mediaDurationChangeHandler();\n if (this.options.autoPlay) {\n this._playStateToggle(true);\n this._ytmedia.loadVideoById(this._getMediaId());\n } else {\n this._ytmedia.cueVideoById(this._getMediaId());\n }\n if (this.options.mute) {\n this.mute(true);\n }\n this.trigger(READY);\n },\n _updateTitle: function () {\n this.titlebar().text(this.media().title || this.media().source);\n },\n _onPlayerStateChange: function (event) {\n if (event.data === 0) {\n this._slider.value(0);\n this._paused = false;\n this._playStateToggle(true);\n this.trigger(END);\n if (this.options.autoRepeat) {\n this.play();\n }\n } else if (event.data === 1) {\n this._ytmedia.setVolume(this.volume());\n if (this._sliderChangeFired) {\n this._sliderChangeFired = false;\n } else {\n this._uiDisplay(false);\n }\n this.trigger(PLAY);\n this._playStateToggle(true);\n this._poll('progress', this._mediaTimeUpdate, 500, this);\n this._paused = false;\n } else if (event.data === 2) {\n if (!this._paused) {\n this._uiDisplay(true);\n this._playStateToggle(false);\n this.trigger(PAUSE);\n this._paused = true;\n }\n }\n },\n _getMediaId: function () {\n var result = this._currentUrl();\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n var match = result.match(regExp);\n if (match && match[7].length === 11) {\n result = match[7];\n }\n return result;\n },\n _mouseClick: function () {\n if (this.isPaused()) {\n this.play();\n } else {\n this.pause();\n }\n },\n _initializePlayer: function () {\n if (!this._mouseMoveHandler) {\n this._mouseMoveHandler = proxy(this._mouseMove, this);\n this._mouseInHandler = proxy(this._mouseIn, this);\n this._mouseOutHandler = proxy(this._mouseOut, this);\n $(this.wrapper).on('mouseenter' + ns, this._mouseInHandler).on('mouseleave' + ns, this._mouseOutHandler).on('mousemove' + ns, this._mouseMoveHandler);\n }\n if (!this._ytmedia && this._youTubeVideo) {\n this._createYoutubePlayer();\n } else if (!this._media && !this._youTubeVideo) {\n this._createHtmlPlayer();\n }\n },\n _createHtmlPlayer: function () {\n if (!this._videoOverlay) {\n this._mouseClickHanlder = proxy(this._mouseClick, this);\n this.wrapper.append('
');\n this._videoOverlay = this.wrapper.find('.k-mediaplayer-overlay').on('click' + ns, this._mouseClickHanlder);\n }\n this._mediaTimeUpdateHandler = proxy(this._mediaTimeUpdate, this);\n this._mediaDurationChangeHandler = proxy(this._mediaDurationChange, this);\n this._mediaEndedHandler = proxy(this._mediaEnded, this);\n this._mediaCanPlayHandler = proxy(this._mediaReady, this);\n this._mediaPlayHandler = proxy(this._mediaPlay, this);\n this._videoOverlay.after(templates.htmlPlayer);\n this._media = this.wrapper.find(DOT + MEDIA)[0];\n $(this._media).css({\n width: '100%',\n height: '100%'\n });\n if (this.options.mute) {\n this.mute(true);\n }\n this._media.ontimeupdate = this._mediaTimeUpdateHandler;\n this._media.ondurationchange = this._mediaDurationChangeHandler;\n this._media.oncanplay = this._mediaCanPlayHandler;\n this._media.onplay = this._mediaPlayHandler;\n this._media.onended = this._mediaEndedHandler;\n },\n _mouseIn: function () {\n this._uiDisplay(true);\n },\n _mouseOut: function () {\n this._poll('mouseIdle', this._mouseIdle, 3000, this);\n },\n _mouseIdle: function () {\n this._uiDisplay(false);\n return false;\n },\n _mouseMove: function () {\n if (!(this._titleBar.is(':animated') || this._toolBar.element.is(':animated') || this._slider.wrapper.is(':animated'))) {\n this._uiDisplay(true);\n }\n this._poll('mouseIdle', this._mouseIdle, 3000, this);\n },\n _uiDisplay: function (state) {\n var animationSpeed = 'slow';\n var uiElements = this._titleBar.add(this._toolBar.element).add(this._slider.wrapper);\n if (state) {\n uiElements.fadeIn(animationSpeed);\n } else {\n uiElements.fadeOut(animationSpeed);\n }\n },\n setOptions: function (options) {\n Widget.fn.setOptions.call(this, options);\n },\n destroy: function () {\n Widget.fn.destroy.call(this);\n if (!this.isPaused()) {\n this.pause();\n }\n this.element.off(ns);\n this.element.find(DOT + OVERLAY).off(ns);\n this._timers = null;\n this._mouseMoveHandler = null;\n this._mouseOutHandler = null;\n this._mouseInHandler = null;\n this._mouseClickHanlder = null;\n this._keyDownHandler = null;\n this._fullscreenHandler = null;\n this._toolbarClickHandler = null;\n this._sliderDragChangeHandler = null;\n this._sliderDraggingHandler = null;\n this._volumeDraggingHandler = null;\n this._volumeChangeHandler = null;\n this._youtubeApiReadyHandler = null;\n this._onYouTubePlayerReady = null;\n this._onPlayerStateChangeHandler = null;\n this._dropDownSelectHandler = null;\n this._media.ontimeupdate = this._mediaTimeUpdateHandler = null;\n this._media.ondurationchange = this._mediaDurationChangeHandler = null;\n this._media.oncanplay = this._mediaCanPlayHandler = null;\n this._media.onplay = this._mediaPlayHandler = null;\n this._media.onended = this._mediaEndedHandler = null;\n if (this._youTubeVideo) {\n this._ytmedia.destroy();\n } else {\n this._media.src = '';\n this._media.remove();\n }\n this._mouseMoveTimer = null;\n clearTimeout(this._mouseMoveTimer);\n kendo.destroy(this.element);\n },\n seek: function (ms) {\n if (typeof ms === 'undefined') {\n return 1000 * this._youTubeVideo ? this._ytmedia.getCurrentTime() : this._media ? this._media.currentTime : 0;\n }\n var seconds = ms / 1000;\n if (this._youTubeVideo) {\n if (seconds + 3 >= this._ytmedia.getDuration() | 0) {\n this._ytmedia.seekTo(this._ytmedia.getDuration() - 3 | 0, true);\n } else {\n this._ytmedia.seekTo(seconds, true);\n }\n } else {\n this._media.currentTime = seconds;\n }\n return this;\n },\n play: function () {\n if (this._youTubeVideo) {\n this._ytmedia.playVideo();\n } else {\n this._uiDisplay(false);\n this._media.play();\n }\n this._paused = false;\n this._playStateToggle(true);\n return this;\n },\n stop: function () {\n if (this._youTubeVideo && this._ytmedia) {\n this._ytmedia.stopVideo();\n } else if (this._media && !this._youTubeVideo) {\n this._uiDisplay(true);\n this._media.pause();\n this._media.currentTime = 0;\n }\n this._paused = true;\n this._playStateToggle(false);\n return this;\n },\n pause: function () {\n if (this._youTubeVideo) {\n this._ytmedia.pauseVideo();\n } else {\n this._uiDisplay(true);\n this._media.pause();\n }\n this._paused = true;\n this._playStateToggle(false);\n this.trigger(PAUSE);\n return this;\n },\n toolbar: function () {\n return this._toolBar;\n },\n dropdown: function () {\n return this._dropDown;\n },\n titlebar: function () {\n return this._titleBar;\n },\n fullScreen: function (enterFullScreen) {\n if (typeof enterFullScreen === 'undefined') {\n return this._isInFullScreen || false;\n }\n var element = this.element.get(0);\n if (enterFullScreen) {\n this._width = this.element.width();\n this._height = this.element.height();\n this.element.width('100%').height('100%').css({\n position: 'fixed',\n top: 0,\n left: 0\n });\n if (element.requestFullscreen) {\n element.requestFullscreen();\n } else if (element.webkitRequestFullscreen) {\n element.webkitRequestFullscreen();\n } else if (element.mozRequestFullScreen) {\n element.mozRequestFullScreen();\n } else if (element.msRequestFullscreen) {\n element.msRequestFullscreen();\n }\n this._isInFullScreen = true;\n } else {\n if (document.cancelFullscreen) {\n document.cancelFullscreen();\n } else if (document.webkitCancelFullScreen) {\n document.webkitCancelFullScreen();\n } else if (document.mozCancelFullScreen) {\n document.mozCancelFullScreen();\n } else if (document.msCancelFullscreen) {\n document.msCancelFullscreen();\n } else if (document.exitFullscreen) {\n document.exitFullscreen();\n } else if (document.msExitFullscreen) {\n document.msExitFullscreen();\n }\n this.element.css({\n position: 'relative',\n top: null,\n left: null\n });\n this.element.width(this._width);\n this.element.height(this._height);\n this._isInFullScreen = false;\n }\n },\n volume: function (value) {\n if (typeof value === 'undefined') {\n return typeof this._volume !== 'undefined' ? this._volume : this._volume = this.options.volume;\n }\n this._volume = value;\n this.mute(value <= 0);\n if (this._youTubeVideo) {\n this._ytmedia.setVolume(this._volume);\n } else {\n this._media.volume = this._volume / 100;\n }\n this._volumeSlider.value(value);\n },\n mute: function (muted) {\n if (typeof muted === 'undefined') {\n return this._youTubeVideo ? this._ytmedia && this._ytmedia.isMuted() : this._media && this._media.muted;\n }\n if (this._youTubeVideo) {\n if (muted) {\n this._ytmedia.mute();\n } else {\n this._ytmedia.unMute();\n }\n } else {\n this._media.muted = muted;\n }\n if (muted) {\n this._volumeSlider.value(0);\n } else {\n this._volumeSlider.value(this._media && this._media.volume * 100 || this._ytmedia && this._ytmedia.getVolume());\n }\n this.trigger(VOLUMECHANGE);\n this._changeVolumeButtonImage(this._volumeSlider.value());\n },\n isEnded: function () {\n if (this._youTubeVideo) {\n return this._ytmedia.getPlayerState() === 0;\n } else {\n return this._media.ended;\n }\n },\n media: function (value) {\n var dropdown = this.dropdown();\n if (typeof value === 'undefined') {\n return typeof this._mediaData !== 'undefined' ? this._mediaData : this._mediaData = this.options.media;\n }\n if (isArray(value.source)) {\n dropdown.setDataSource(value.source);\n dropdown.wrapper.show();\n } else {\n dropdown.wrapper.hide();\n }\n this._mediaData = value;\n this._updateTitle();\n this._setPlayerUrl();\n },\n isPaused: function () {\n return this._paused;\n },\n isPlaying: function () {\n return !this.isEnded() && !this._paused;\n },\n _aria: function () {\n this.wrapper.attr('role', 'region');\n },\n _navigatable: function () {\n this._fullscreenHandler = proxy(this._fullscreen, this);\n $(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange' + ns, this._fullscreenHandler);\n if (this.options.navigatable) {\n this.wrapper.attr('tabIndex', 0);\n this._keyDownHandler = proxy(this._keyDown, this);\n this.wrapper.on('keydown' + ns, this._keyDownHandler);\n }\n this._fullscreenHandler = proxy(this._fullscreen, this);\n $(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange' + ns, this._fullscreenHandler);\n },\n _fullscreen: function () {\n var isFullScreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;\n this._uiDisplay(true);\n this._slider.resize();\n if (!isFullScreen) {\n this.wrapper.find('span[class*=\"k-i-fullscreen\"]').removeClass(FULLSCREEN_EXIT).addClass(FULLSCREEN_ENTER);\n this.fullScreen(false);\n }\n },\n _keyDown: function (e) {\n e.preventDefault();\n if (e.keyCode === keys.SPACEBAR) {\n if (this.isPlaying()) {\n this.pause();\n } else {\n this.play();\n }\n }\n if (e.keyCode === keys.ENTER) {\n this.wrapper.find('span[class*=\"k-i-fullscreen\"]').removeClass(FULLSCREEN_ENTER).addClass(FULLSCREEN_EXIT);\n this.fullScreen(true);\n }\n if (e.keyCode === 77) {\n var muted = this.mute();\n this.mute(!muted);\n }\n },\n _error: function () {\n },\n _progress: function () {\n }\n });\n ui.plugin(MediaPlayer);\n }(window.kendo.jQuery));\n return window.kendo;\n}, typeof define === 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"],"sourceRoot":"/source/"}