-
-
Save iamsajidjaved/eb4dec2238fe7f0345fb8c7e5072ead1 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Fluid Player with VAST</title> | |
</head> | |
<body style="margin: 0px"> | |
<video id="khyber-tv" controls preload="auto"> | |
<source | |
src="https://streamone.simpaisa.com:8443/pitvlive1/khyber.smil/playlist.m3u8" | |
type="application/x-mpegURL" | |
/> | |
</video> | |
<!-- Place before </body> tag --> | |
<script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script> | |
<script> | |
// fluidPlayer method is global when CDN distribution is used. | |
var player = fluidPlayer("khyber-tv", { | |
layoutControls: { | |
fillToContainer: true, | |
}, | |
vastOptions: { | |
adList: [ | |
{ | |
roll: "preRoll", | |
vastTag: | |
"https://www.videosprofitnetwork.com/watch.xml?key=f2376195e1fcba5a081efd3212658bff", | |
adText: "", | |
}, | |
], | |
adCTAText: false, | |
adCTATextPosition: "", | |
}, | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment