micnews / react-jw-player

A React Component API for JW Player
195 stars 94 forks source link

Add a custom button and disable fullscreen #169

Open BhaveshSGupta opened 4 years ago

BhaveshSGupta commented 4 years ago

Hello, I am trying to do changes in the working of ReactJWPlayer, I want to disable fullscreen button, I think the best way to do it would be by skins, and want to add a button which would make player semi fullscreen.

There could another option, where I could replace the functionality of fullscreen btn to have my custom code. I am not able to do that.

Do you know a workaround here?

vaultec81 commented 4 years ago

Take a look at https://developer.jwplayer.com/jwplayer/docs/jw8-javascript-api-reference#section-jwplayer-add-button-img-tooltip-callback-id-btn-class for custom buttons, which you will have to use the jwplayer instance directly to implement this functionality