-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
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
const playerOptions = getVideoPlayerOptions(props);
For example:
const CldVideoPlayer = (props) => {
...
const playerOptions = getVideoPlayerOptions(props);
videoPlayer(element, playerOptions);
...
}
Additional Notes
- Types should be maintained as two sets: CloudinaryVideoPlayer (native widget) and getVideoPlayerOption - see [Feature] Create a new Types package for native Cloudinary types #122 for implementation
- Include autoplay normalization until deprecation notice is served: feat: respect browser standard autoplay props (#319) next-cloudinary#350
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels