
How to restrict hte video playing to 20 sec
Hi,
i have jw platform account and am displaying videos in my wordpress website with platform api and jw player.
how i can stop the playing of video when it reaches 20 sec.
am using like this
<?php
require_once('botr/api.php');
$botr_api = new BotrAPI('xxx', 'yyy');
$response1 = $botr_api->call("/videos/show",array('video_key'=>'aaa'));
$video = $response1['video']['key'];
?>
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<div id="testing"></div>
<script>
jwplayer("testing").setup({
playlist: "http://content.jwplatform.com/jw6/<?php echo $video; ?>.xml",
width:'50%'
});
</script>