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

When pause on streaming live rtmp, how to make player pause on the last frame?


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. Please help, need it asap!

Thanks a lot!

Jim

3 Community Answers

Ethan Feldman

JW Player Support Agent  
1 rated :

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

k...

User  
0 rated :

I'm apologize, is this the complete code? I'm not a coder, that's what I have and it doesn't work:
<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>

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.