66 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!doctype html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <meta charset="UTF-8">
 | 
						|
    <meta name="viewport"
 | 
						|
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
 | 
						|
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
 | 
						|
    <title>VOD with VAST loaded on demand</title>
 | 
						|
    <%= htmlWebpackPlugin.tags.headTags %>
 | 
						|
    <style lang="css">
 | 
						|
        #fluid-player-e2e-case {
 | 
						|
            width: 90%;
 | 
						|
        }
 | 
						|
    </style>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
 | 
						|
<video id="fluid-player-e2e-case">
 | 
						|
    <source src="https://cdn.fluidplayer.com/videos/valerian-1080p.mkv" data-fluid-hd title="1080p" type="video/mp4"/>
 | 
						|
    <source src="https://cdn.fluidplayer.com/videos/valerian-720p.mkv" data-fluid-hd title="720p" type="video/mp4"/>
 | 
						|
    <source src="https://cdn.fluidplayer.com/videos/valerian-480p.mkv" title="480p" type="video/mp4"/>
 | 
						|
</video>
 | 
						|
 | 
						|
<ul>
 | 
						|
    <li>midRoll 1 (Linear) - Will be loaded on video start, since its timer is set to 3</li>
 | 
						|
    <li>midRoll 2 (Linear) - Will be loaded at 10 seconds, since its timer is set to 15</li>
 | 
						|
    <li>midRoll 3 (Non-Linear) - Will be loaded at 25 seconds, since its timer is set to 30</li>
 | 
						|
    <li>postRoll (Linear) - Will be loaded in any of the 5 last seconds of the video</li>
 | 
						|
</ul>
 | 
						|
 | 
						|
<p><small>Check DevTools to see the VAST requests being loaded on demand</small></p>
 | 
						|
 | 
						|
<%= htmlWebpackPlugin.tags.bodyTags %>
 | 
						|
 | 
						|
<script>
 | 
						|
    var instance = fluidPlayer('fluid-player-e2e-case', {
 | 
						|
        vastOptions: {
 | 
						|
            allowVPAID: true, // Default false.
 | 
						|
            adList: [
 | 
						|
                {
 | 
						|
                    roll: 'midRoll',
 | 
						|
                    vastTag: '/static/vast_linear.xml?midRoll=1',
 | 
						|
                    timer: 3
 | 
						|
                },
 | 
						|
                {
 | 
						|
                    roll: 'midRoll',
 | 
						|
                    vastTag: '/static/vast_linear.xml?midRoll=2',
 | 
						|
                    timer: 15
 | 
						|
                },
 | 
						|
                {
 | 
						|
                    roll: 'midRoll',
 | 
						|
                    vastTag: '/static/vast_nonlinear.xml?midRoll=3',
 | 
						|
                    timer: 30
 | 
						|
                },
 | 
						|
                {
 | 
						|
                    roll: 'postRoll',
 | 
						|
                    vastTag: '/static/vast_linear.xml?postRoll=1',
 | 
						|
                },
 | 
						|
            ]
 | 
						|
        }
 | 
						|
    });
 | 
						|
</script>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 |