Closed rashadatjou closed 1 year ago
This PR adds support for User Interface Configuration for the Flowplayer component. It hides the complexity of using bitmask and instead allows the user to set the uiConfig prop with a object syntax.
uiConfig
Example:
<Flowplayer src={demoSrc} token={DEMO_TOKEN} uiConfig={{ noFullscreen: false, usePlay3: true, noMute: true }} />
Disclaimer: I did not know where to put the global types so I created a new directory called types and added them to flowplayer-ui.d.ts.
types
flowplayer-ui.d.ts
Note that I also need to add new props for setting the brand color. But that needs to be a PR on it's own as it will bring in much more complexity.
This PR adds support for User Interface Configuration for the Flowplayer component. It hides the complexity of using bitmask and instead allows the user to set the
uiConfig
prop with a object syntax.Example:
Disclaimer: I did not know where to put the global types so I created a new directory called
types
and added them toflowplayer-ui.d.ts
.