Skip to content Skip to sidebar Skip to footer

How To Check How Much Of A Video Stream Has Been Seen By User With Php

I'm working on a project which shows video advertisement to user and after 60 second users can see a link. My boss wants to be sure users watch all of 60 second. Now I want to kno

Solution 1:

The servers job was done as soon at the video was downloaded. This must be done client side. You need a piece of javascript that will display the link once the video is played.

Solution 2:

This can only be done at client side in java script. You will need to start timer when video starts to playing. Check the Video player API you will need to find event API to execute code on event when video starts. For the Advertisement, You will need to overlap your ad container on video screen with the help of css. Then execute that code in the function

setTimeout(function(){ 
 //Show your ad container here  
 }, 60000);
 //60,000 is equal to 60 seconds

Post a Comment for "How To Check How Much Of A Video Stream Has Been Seen By User With Php"