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

Customization help needed ASAP!


Hi guys,

I have an urgent matter: I need to customize jwplayer the way that it shows the last frame when paused.
I'm using: broadcasting from iPhone OSbrodcaster to wowza using rtmp live application. When you pause a live stream playback the player displays a back screen. Is there a way to customize it so it displays the last frame? Just like when you're watching the video on demand or a movie from your laptop you'd pause it and observe a still image. onPause (buffering or playing) doesn't work.

Ethan Feldman kindly posted this:

You could use the API to do this:

events:{
onTime: function(object) {
if(object.position > object.duration – 1) {this.pause();}
}
}

http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference




I'm not a coder, so I pasted it into the code and it didn't work! Here is what I have:
<body>
<div id='playerKyzXcKjKQLpr'></div>
<script type='text/javascript'>
jwplayer('playerKyzXcKjKQLpr').setup({
file: 'rtmp://10.0.0.3:1935/live/myStream',
image: 'http://www.longtailvideo.com/content/images/jw-player/lWMJeVvV-876.jpg',
rtmp: {
bufferlength: 0.1
},
width: '100%',
aspectratio: '16:9',
autostart: 'true',
primary: 'flash'
events:{
onTime: function(object) {
if(object.position > object.duration – 1) {this.pause();}
}
}
});
</script>

You would literally save my life if you'd help me out. My email is kv961@yahoo.com pm me if it's better for you! Thank you guys in advance!

1 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

This code should work:

<script src="http://jwpsrv.com/library/6+Y1sstiEeOA+iIACi0I_Q.js"></script><div id='playerKyzXcKjKQLpr'></div> <script type='text/javascript'> jwplayer('playerKyzXcKjKQLpr').setup({ file: 'rtmp://10.0.0.3:1935/live/myStream', image: 'http://www.longtailvideo.com/content/images/jw-player/lWMJeVvV-876.jpg', rtmp: { bufferlength: 0.1 }, width: '100%', aspectratio: '16:9', autostart: 'true', primary: 'flash', events:{ onTime: function(object) { if(object.position > object.duration - 1) {this.pause();} } } }); </script>

This question has received the maximum number of answers.