L
llengcai
New Member
Currently in the source code of elementor.3.1.1\elementor\assets\js\frontend.js, the transparent parameter of vimeo background video is hardcoded to false
}, {
key: "prepareVimeoVideo",
value: function prepareVimeoVideo(Vimeo, videoId) {
var _this2 = this;
var elementSettings = this.getElementSettings(),
startTime = elementSettings.background_video_start ? elementSettings.background_video_start : 0,
videoSize = this.elements.$backgroundVideoContainer.outerWidth(),
vimeoOptions = {
id: videoId,
width: videoSize.width,
autoplay: true,
loop: !elementSettings.background_play_once,
transparent: false,
background: true,
muted: true
};
this.player = new Vimeo.Player(this.elements.$backgroundVideoContainer, vimeoOptions); // Handle user-defined start/end times
this.handleVimeoStartEndTimes(elementSettings);
this.player.ready().then(function () {
jQuery(_this2.player.element).addClass('elementor-background-video-embed');
_this2.changeVideoSize();
});
}
}, {
Is there JS Hooks method to customize and set this transparent value to true?
}, {
key: "prepareVimeoVideo",
value: function prepareVimeoVideo(Vimeo, videoId) {
var _this2 = this;
var elementSettings = this.getElementSettings(),
startTime = elementSettings.background_video_start ? elementSettings.background_video_start : 0,
videoSize = this.elements.$backgroundVideoContainer.outerWidth(),
vimeoOptions = {
id: videoId,
width: videoSize.width,
autoplay: true,
loop: !elementSettings.background_play_once,
transparent: false,
background: true,
muted: true
};
this.player = new Vimeo.Player(this.elements.$backgroundVideoContainer, vimeoOptions); // Handle user-defined start/end times
this.handleVimeoStartEndTimes(elementSettings);
this.player.ready().then(function () {
jQuery(_this2.player.element).addClass('elementor-background-video-embed');
_this2.changeVideoSize();
});
}
}, {
Is there JS Hooks method to customize and set this transparent value to true?