e.success) {
            console.log("The embed was successful!");
            console.log(e);
            var player = document.getElementById(e.id);
            player.addEventListener("volumechange", myFunction);
        } else {
            alert("The embed failed!");
        }
    };

    function onJavaScriptBridgeCreated(playerId) {
        var player = document.getElementById(playerId);
        player.addEventListener("complete", "completeFunc");
        player.addEventListener("volumeChange", onVol