It's pretty easy and described in Nuevoplayer documentation, but those who cannot find it, please read this:
In Nuevoplayer config file (xml or php), anywhere among other xml items you need to enter watch limit flashvars.
If this is XML file:
- Code: Select all
<watchlimit>15</watchlimit>
<limitsource>URL of media file to display</limitsource>
<limiturl>full URL to go when limit object clicked</limiturl>
if this is php file:
- Code: Select all
print "<watchlimit>15</watchlimit>\n";
print "<limitsource>URL of media file to display</limitsource>\n";
print "<limiturl>full URL to go when limit object clicked</limiturl>\n";
example watchlimit of 15 (seconds) is the time when video stops and limit picture or swf appears.
limitsource is full URL of media file - picture (jpg, gif, png) or flash (swf)
limiturl is the full URL where user is redirected when click over limit picture/swf object
In case of clipshare of AVS script limit code above should be placed in"nuevo" files: confug.php and econfig.php, somewhere above the line print "</config>";
Remind that for clipshare and AVS scripts we deliver separate config file named "econfig" for embeded videos, so if you wish to use watch limit for embeded videos - don't forget to set it in mentioned file.
Of course such limit can be set dynamically, depending on current user status.
However you must know how to find out current user ID (from seesion) and how to get current user status using php and mysql.