
Seek Code Example?
Hi,
Using JW Player 7.1.4 with Wowza Streaming Engine 4.3.
Looking for a solution that uses an API call to seek backward -30 seconds from the live playback position when streaming Wowza DVR content via HLS. Ideally, a simple URL in the player or an HTML hyperlink (preferred) that 'onclick' will grab the current position time and seek back 30 seconds. Doesn't have to be exact.
Wish list: WIth multiple players in a page, use the same command to kick all the players back using the same interval.
This is the code I am using now:
<script type="text/javascript">// <![CDATA[
jwplayer('player1').setup({
file: 'http://wowza.homeip.net:1935/live/DemoLoop_240p/playlist.m3u8?DVR',
image: 'images/wowza_poster.jpg',
width: '426',
height: '240',
aspectratio: '16:9',
primary: 'flash',
skin: 'jwplayer/bekle.xml',
autostart: 'true'
});
// ]]></script>
<a href="#" onclick="jwplayer('player1').seek(1730);jwplayer('player2').stop();jwplayer('player3').stop();jwplayer('player4').stop();jwplayer('player5').stop();jwplayer('player6').stop();jwplayer('player7').stop();jwplayer('player8').stop();">
-30</a>
Comments welcome.
Thank you!
-Tim