cloudinary-community / cloudinary-community/cloudinary-util

[Feature] Add top level rawTransformations option to getVideoPlayerOptions

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14
Forks
23
PR merge metrics
No merged PRs in 30d

Description

# **Feature Request**

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

A goal of the CldVideoPlayer is to move to a more consistent transformation API similar to the CldImage component.

One first step, based on request, is to create a `rawTransformations` mechanism which is an escape hatch for people to write whatever transformation they want in the raw URL format.

Usage would appear like:

```

```

To make this work, the Cloudinary Video Player exposes a `transformation` option which itself has a `raw_transformation` property.

https://github.com/cloudinary/js-url-gen/blob/master/src/types/types.ts#L433

We can utilize this to pass along any raw transformations to that property.

This should be handled from within the `getVideoPlayerOptions` function to allow all libraries to get this feature support.

Note: as someone _could_ pass in both rawTransformations and transformation.raw_transformations, we should merge the values of those two fields to avoid conflicts and allow them to work together, even though it may not be recommended as such.

Related: https://github.com/nuxt-modules/cloudinary/issues/239

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.