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
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.
An additional argument is the
configobject, 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