Created
July 1, 2022 16:32
-
-
Save dimsemenov/5166b4e1dd9f0794a1d6be1d607dc11c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rs_use_video_tag() { | |
?> | |
var slider = $('.royalSlider').data('royalSlider'); | |
slider.ev.on('rsOnCreateVideoElement', function(e, url) { | |
slider.videoObj = $('<video src="' + url + '" autoplay></video'); | |
}); | |
<?php | |
} | |
add_action('new_rs_after_js_init_code', 'rs_use_video_tag'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment