Skip to content

Instantly share code, notes, and snippets.

@iamsajidjaved
Created October 31, 2022 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamsajidjaved/eb4dec2238fe7f0345fb8c7e5072ead1 to your computer and use it in GitHub Desktop.
Save iamsajidjaved/eb4dec2238fe7f0345fb8c7e5072ead1 to your computer and use it in GitHub Desktop.
<!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