Google ad manager - Local-hosted DFP video

0 votes
259 views
added Apr 19, 2019 in Google tools by LC Marshal Captain (25,790 points)
<html> 
<head>
	<script type="text/javascript">
        // Change the value of this string to your URL
        var clickTag = "https://www.panasonic.com/my/air-solutions/products.html";
    </script>
    <style>
        body {
            margin: 0;
        }
        .video-wrapper {
            width: 300px; height: 250px; background: #000;
        }
        #dfpv {
            margin-top: 40px;
            width: 300px;
            height: 169px;

        }
    </style>
</head>

    <body> 
        <div class="video-wrapper">
            <a href="javascript:window.open(window.clickTag)">
            <video id="dfpv" muted playsinline controls disablePictureInPicture controlsList="nodownload">
                <source src="https://dbv47yu57n5vf.cloudfront.net/dfp/video/panasonic-v6.mp4" type="video/mp4">
                Your browser does not support HTML5 video.
            </video>
            </a>

        </div>
    </body> 
    
    <script>
        document.getElementById('dfpv').play();
    </script>
</html>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...