11.04.2022, 09:07
Via Custom JavaScript. Change video source as needed. This script will only affect Usermode visualization but not Touch, Schedulers or Trends.
Code:
$(function(){
if ($('body').hasClass('usermode')) {
var src = 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4';
var el = $(
'<video muted="true" autoplay="true">' +
'<source src="' + src + '" type="video/mp4">' +
'</video>'
).css({
'position': 'absolute',
'top': 0,
'left': 0,
'width': '100%',
'height': '100%',
'z-index': 9999,
'background': 'white'
}).appendTo('body');
el.on('ended click', function() {
el.off();
el.css({
'transition': '0.5s',
'opacity': 0
});
setTimeout(function() {
el.remove();
}, 500);
});
}
});