Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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

2 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

I have not seen this script before, but do you have an example of where you are trying to run this?

maximiliano.e

User  
0 rated :

i think you need to create a plugin and you should store the video url and when the event end is fired, you should avoid to play another video until an action is succeded.

This question has received the maximum number of answers.