
Pause the video after play and require to share before contiune
I want to content lock my videos, so after user plays the video it automatically pause and require the user to share the video on Facebook to continue.
I use JW player on Wordpress
i tried to insert this javascript code at the first lines of jwp5.php and jwp6-ajax.php: but nothing happen:
bc.. <link href='https://sites.google.com/site/r4vemaster/my-file/fb-like-pop.css' rel='stylesheet' type='text/css'/>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'/>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1' type='text/javascript'/>
<script src='http://gpsmap.us/script/fb-like-pop.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function() {
$('body').facebookTrafficPop( {
timeout: 90,
title: "Please Support us!",
message: 'Please support us by liking our page! <br></br>After like you will get the working download link',
url: "https://www.facebook.com/pages/Take-a-Smile/594735580618016",
'opacity': 0.3,
'advancedClose':false,
closeable: true
} );
});
//]]>
</script>
I`m new to programming and I don`t fully understand how this player works
Can anyone tell me if this script is ok and where i have to insert it?
Any help will be appreciated
Thank you