uawdijnntqw1x1x1
IP : 18.188.103.42
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
msk.axolotls.ru
/
bitrix
/
js
/
landing
/
mediaplayer
/
youtube_mediaplayer.js
/
/
;(function() { "use strict"; BX.namespace("BX.Landing.MediaPlayer"); var addQueryParams = BX.Landing.Utils.addQueryParams; var getQueryParams = BX.Landing.Utils.getQueryParams; /** * Implements interface for works with youtube player * @extends {BX.Landing.MediaPlayer.BasePlayer} * @inheritDoc * @constructor */ BX.Landing.MediaPlayer.Youtube = function(iframe) { BX.Landing.MediaPlayer.BasePlayer.apply(this, arguments); var src = iframe.src; if ((new RegExp("^\/\/")).test(src)) { src = src.replace("//", "https://"); } if ((new RegExp("^http:\/\/")).test(src)) { src = src.replace("http://", "https://"); } iframe.src = addQueryParams(src, { enablejsapi: 1, origin: window.location.protocol + '//' + window.location.host, }); iframe.onload = function() { this.player = new YT.Player(iframe); this.player.addEventListener("onReady", function() { void (this.parameters.autoplay ? this.play() : this.pause()); void (this.parameters.mute ? this.mute() : this.unMute()); void (this.parameters.loop ? this.setLoop(true) : this.setLoop(false)); }.bind(this)); }.bind(this); }; BX.Landing.MediaPlayer.Youtube.prototype = { constructor: BX.Landing.MediaPlayer.Youtube, __proto__: BX.Landing.MediaPlayer.BasePlayer.prototype, /** * Starts playback */ play: function() { this.player.playVideo(); }, /** * Stops playback */ pause: function() { this.player.pauseVideo(); }, /** * Stops video */ stop: function() { this.player.stopVideo(); }, /** * Sets loop playback * @param {Boolean} value */ setLoop: function(value) { this.parameters.loop = value; if (!this.loopInited) { this.loopInited = true; this.player.addEventListener("onStateChange", function(event) { void (this.parameters.loop && event.data === 0 && this.play()); }.bind(this)); } }, /** * Sets start video * @param seconds */ seekTo: function(seconds) { this.player.seekTo(seconds); }, /** * Disables sound */ mute: function() { this.player.mute(); }, /** * Enables sound */ unMute: function() { this.player.unMute(); } }; })();
/var/www/axolotl/data/www/msk.axolotls.ru/bitrix/js/landing/mediaplayer/youtube_mediaplayer.js