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='' rel='stylesheet' type='text/css'/>
<script src=''/>
<script src='' type='text/javascript'/>
<script src='' type='text/javascript'/>
<script type='text/javascript'>
$(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: "",
'opacity': 0.3,
closeable: true
} );



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?


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.