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

using single-line embed - hide an overlay div on play?


We're using single-line embeds from JWPlatform.

We've decided to start adding an overlay on hover with a little description about the video and the running time.

Is it possible to hide this overlay on play and make it visible again on completion? (We don't need to show it on pause.)

I was trying something like this in my custom js file:

jwplayer().on('play')(function() {alert('play clicked')});

but I get

jwplayer(...).on(...) is not a function

Any suggestions?

Thanks!

4 Community Answers

Kristi W

Best Answer 

Perfect - thank you! I'll do that.

View in conversation

George

JW Player Support Agent  
0 rated :

For me to reproduce this issue reliably I will need the following information:

Browser name and version:
Operating System name and version:
Device make and model:
Provide step by step instructions on how to reproduce the issue on your page:
A test page replicating the issue as described in the document below:
https://support.jwplayer.com/customer/portal/articles/2186238-troubleshooting-%E2%80%94-creating-a-test-page

The test page must not contain any additional code or CSS, it must only contain the player and concrete steps to reproduce with expected and actual behavior.

From the sound of it you’re using the iframe embed method so jwplayer() is not defined in your window’s context.

k...

User  
0 rated :

HI George,

Thanks - I'll put that together for you.

Is there a private channel where I can send the URL so it's not public here on the forum?

Thanks!

George

JW Player Support Agent  
0 rated :

Hi,

You could submit a support case from your Account Dashboard

Kristi W

Best Answer  User  
0 rated :

Perfect - thank you! I'll do that.

This question has received the maximum number of answers.