-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rawTransformations needed on <CldVideoPlayer /> like on useCldVideoUrl #239
Comments
Hey there! Thanks for reporting this issue. I do agree that it would be useful to have it on the component level. Would you be interested in contributing to the module with this change? I can provide all the help needed to make it live :) |
hey wanted to chime in here because part of my goal with Next.js, the cousin to this library, is to have a similar API To the CldImage component as far as transformations go I wasn't sure if the underlaying options for the Cloudinary Video Player supported this capability but I found that it appears to: https://github.com/cloudinary/js-url-gen/blob/master/src/types/types.ts#L433 so technically speaking, you could as of now, pass in however I think it should be exposed as a top level option similar to CldImage from that consistency POV to allow this library, Next, Svelte, and Astro to all benefit from this together, I would love to see this change added to our core library, Cloudinary Util: https://github.com/colbyfayock/cloudinary-util whether one of you handle it, i handle it, or perhaps someone handles it through Hacktoberfest, I set up a new issue |
@billnbell3 aside from this feature support - i would be curious about what your use case is for needing raw transformations and if there isn't a specific transformation that we need to add support for? |
Yeah fading in and out is pretty common for videos.
|
Also your screenshot is not Vue code.?
Generally we need to wrap the object is double quotes in Vuejs.
transformation="{ raw_tranformation: 'e_fade:2000'}"
Does that work for you? It does not for me.
|
yeah sorry for the confusion, i was testing in the nextjs equivalent: https://next.cloudinary.dev/cldvideoplayer/basic-usage |
It actually does not work in VueJs. Probably needs encoding fix or something. This is what I tried - no fading is in the URL when using this.
|
can you try
had the naming backwards |
yep that works. The docs need upgrading. And the raw_transformation should be matching to other libraries. |
@colbyfayock do you think these |
yeah my goal is to make the API between the video player and image component consistent, so it woudl make sense as a top level prop. ensuring the player options are documented and typed are important for a stop-gap solution and also for the other options that are already available. i have a separate ticket open to update the types |
Caveat: unless we decide to do a CldVideo component which I've considered in the past, the idea being it wraps the native <video element instead of bringing in the Video Player. Less customization and features, but if people dont care about that, they can ship less JS, so having that option could be beneficial. i still think we should make some APIs consistent, like rawTransformations as it makes sense, but the API for CldVideo could be almost identical to CldImage |
I see thanks for the comment @colbyfayock and sorry for long response. This comment of your completely disapeard from my notifications. I would be up for adding this raw Transformations to the prop dearation of the component to support the same as useCldVideoUrl for now while in the background we could think about building CldVideo.vue component. Would you like me to create an RFC based on this issue? :) @billnbell3 would you be up for contributing to the module and adding these rawtransformations to CldVideoPlayer? I can provide all help needed :) |
if you think the CldVideo component would be valuable let's do it! |
I have no time to do this right now. |
I have added a note about raw transformations to CldVideoPlayer docs. For the thing about CldVideo component, I think first we would need to have an RFC about this component, gather feedback about how it should look like and behave. I will talk about it with Sanjay :) |
It would be awesome if we can send rawTransformations in CldVideoPlayer like we can in useCldVideoUrl!
The transformations property just appends t_ and does not do what we want.
See below for how we got it to work without CldVideoPlayer:
The text was updated successfully, but these errors were encountered: