Skip to content

[Feature] getVideoPlayerOptions #123

@colbyfayock

Description

@colbyfayock

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions