Answers for "vzaar on hover player"

0

vzaar on hover player

// Dailymotion video
var player = DM.player(document.getElementById("player"), {
    video: "x70val9",
    width: "100%",
    height: "400",
    params: {
        autoplay: false,
        mute: true,
    }
});

// Wait for apiready event to use the API
player.addEventListener('apiready', function() {

    player.addEventListener("mouseover", function() {
        player.setMuted(false);
    });
    player.addEventListener("mouseout", function() {
        player.setMuted(true);
    });
});
Posted by: Guest on April-07-2021

Browse Popular Code Answers by Language