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

How do I make the player setup() instead of resume after a pause?


My site has RTMP streaming video, and when when the user pauses and resumes, it always fails to resume the stream. It shows a circular icon which, when clicked, will resume the stream but this is a bit ugly from a UX perspective.

Is there an event handler I can use to make the "un pause" functionality internally call the same function as that circular icon uses?

7 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Something like:

jwplayer().oPause(function() {
//setup_goes_here
});

darrel343

User  
0 rated :

I'm guessing you meant onPause, but that doesn't seem like it can do what i need.

Unless I'm mistaken, onPause() fires when the pause happens, and onPlay() fires once the stream has successfully resumed.

What I don't see is how to perform the setup() instead of the normal resume from an unpause action.

Ethan Feldman

JW Player Support Agent  
0 rated :

I mean, when the user pauses the player, since playing again will cause it to buffer? Do you have a link?

darrel343

User  
0 rated :

I can't post a link publicly because it's a video streaming app for an unreleased product.

But the problem I'm having is that the RTMP stream does not reinitialize after it has been paused.

If you hit the "Play" (Arrow) icon, it instead goes to a circular arrow icon, meaning the user has to click twice in order to resume streaming after a pause. We really want to remove rough edges such as this in the UX, so I need to make it skip to the function performed by that circular arrow rather than do whatever the "Play" arrow tries to do unsuccessfully.

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you email a link?

darrel343

User  
0 rated :

What email address should I send it to?

Ethan Feldman

JW Player Support Agent  
0 rated :

support [at] jwplayer [dot] com

This question has received the maximum number of answers.