To help provide an easier path for supporting video players in each consumer package, we can asbtract a getVideoPlayerOptions function that given a set of props, returns the configuration options for the Cloudinary Video Player.
const playerOptions = getVideoPlayerOptions(props);
const CldVideoPlayer = (props) => {
...
const playerOptions = getVideoPlayerOptions(props);
videoPlayer(element, playerOptions);
...
}
Feature Request
Is your feature request related to a problem? Please describe.
To help provide an easier path for supporting video players in each consumer package, we can asbtract a getVideoPlayerOptions function that given a set of props, returns the configuration options for the Cloudinary Video Player.
See RFC: #86
Describe the solution you'd like
For example:
Additional Notes