apptimist
apptimist

Reputation: 83

How to add a Button in the JW Player control bar using Javascript API?

The official documentation has a method -

addButton(icon, label, handler, id)

But this adds a button in the Video area.

I want to add a button in the control bar besides the Play Pause button. Is there any option in the JW Player.

Fiddle

PS - I dont want to insert html on my own in the player. I want to use a built in function.

Upvotes: 4

Views: 3898

Answers (2)

Zulfiqar Hussaini
Zulfiqar Hussaini

Reputation: 36

Download source code from github and add as many buttons you want,,,, the only way

Upvotes: 0

Ben
Ben

Reputation: 885

Currently there is no way to do that. addButton adds a button over the video. You can follow this pull request:

Add custom control bar buttons #126

https://github.com/jwplayer/jwplayer/pull/126

Upvotes: 2

Related Questions