Skip to content

[Feature] Use getVideoPlayerOptions to support CldVideoPlayer #111

@colbyfayock

Description

@colbyfayock

Feature Request

Is your feature request related to a problem? Please describe.

getVideoPlayer options was released as a function available in the @cloudinary-util/url-loader package allowing us to maintain the logic to support the component in a shared module.

Using it is as simple as passing the options / props directly to the function, returning the options that will then be passed to the player.

const playerOptions = getVideoPlayerOptions(props, config);
videoPlayer(videoRef.current, playerOptions);

An additional argument is the config object, which is shaped as ConfigOptions, currently being used in the library.

Next Cloudinary: cloudinary-community/next-cloudinary#478

Cloudinary Util: cloudinary-community/cloudinary-util#157

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions