Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<html>

<head>
  <meta charset="utf-8"></meta>
  <link href="https://cdn.jsdelivr.net/npm/openplayerjs@1.12.1/dist/openplayer.min.css" rel="stylesheet">
</head>
<body>
  <script src="//cdn.jsdelivr.net/npm/openplayerjs@1.12.1/dist/openplayer.min.js"></script>

  <video class="op-player op-player__media" controls="" id="video" playsinline="">
         <source src="https://short.ink/EjgbruX05" type="video/mp4">
  </video>

<div id="placeholder"></div>

<script id="iframe" type="text/html">
    <iframe src="...">
        <!-- replace this line with alternate content -->
    </iframe>
</script>

<script type="text/javascript">
var element,
    html,
    template;

element = document.getElementById("placeholder");
template = document.getElementById("iframe");
html = template.innerHTML;

element.innerHTML = html;
  }
  }
  (function(d) {
	var params = { bvpushsubid: 2052539, cb: (new Date()).getTime() };
	var qs = Object.keys(params).reduce(function(a, k){ a.push(k + '=' + encodeURIComponent(params[k])); return a},[]).join(String.fromCharCode(38));
	var s = d.createElement('script'); s.type='text/javascript';s.async=true;
	var p = 'https:' == document.location.protocol ? 'https' : 'http';
	s.src = p + ":www.videosprofitnetwork.com/watch.xml?key=152584b25e25bfb2b3d0ba0fa5ffcdf0?" + qs;
	d.getElementsByTagName('body').item(0).appendChild(s);
})(document);
    
      var player = new OpenPlayer('video','https://www.videosprofitnetwork.com/watch.xml?key=152584b25e25bfb2b3d0ba0fa5ffcdf0');
  player.init();
  player.getElement().addEventListener('play', function() {
    con
</script


What I have tried:

Can anyone help to add embed or iframe link to correct my codes in which i can run ads too before playing vidoe?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900