1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Content locker working... Sometimes.

Discussion in 'Black Hat SEO' started by jaredwins, Apr 3, 2014.

  1. jaredwins

    jaredwins Junior Member

    Joined:
    Aug 13, 2013
    Messages:
    131
    Likes Received:
    94
    I apologize if this post is in the wrong forum, please feel free to move it. I've spent two days searching this forum, google and tinkering with code myself.

    I'm using a content locker to lock full length videos embedded with the html5 <video> element. I have it configured to lock the page at 5 minutes (the video is still playing in the background) and force the user to fill out the survey before continuing their movie. This works great unless the video is placed in FullScreen mode. If it's in Fullscreen, the content locker "locks" at 5 minutes, but doesn't force the user to fill out the survey until they leave Fullscreen mode.
    Do you guys have any ideas?

    My goal is to give my user the full video, while still making a $. I'm just using the code generated from my CPA network, do I need to purchase a custom locker?
     
  2. jaredwins

    jaredwins Junior Member

    Joined:
    Aug 13, 2013
    Messages:
    131
    Likes Received:
    94
    Just wanted to add an update here how I resolved this issue. It's a little extra work, but here's how I redirect users to my aff link while they watch on html5 video.

    Create another page mirroring the content. On the first page, insert this code: <META http-equiv="refresh" content="299;URL=****/page2">
    What this does, is redirect the page at 299 seconds to page2 which contains your locked content.
    On page 2, enter this code:
    Code:
    <script>document.getElementById('vid1').addEventListener('loadedmetadata', function() {
      this.currentTime = 300;
    }, false);
    </script>
    
    The cool thing is that the video continues to play in the background exactly at 300 seconds, or 5 minutes.

    Hope this helps someone.
     
    Last edited: Apr 14, 2014