Jay
Jay

Reputation: 1

jwplayer External Play Pause Button

I want to add a play and pause button outside the player.

I added onclick="jwplayer().play();" to the page. But this doesn't work

Is there any way?

Upvotes: 0

Views: 943

Answers (1)

Todd
Todd

Reputation: 249

If the player is not playing, then your code should work. Can you provide the entire code example?

From their documentation at https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/ , calling jwplayer().play() when the player is already playing does nothing. Have you tried jwplayer().pause() ?

Upvotes: 1

Related Questions