cloudinary / frontend-frameworks

Cloudinary javascript frontend frameworks SDKs, including Shared HTML layer, Angular, React and Vue SDKs
https://www.cloudinary.com
MIT License
42 stars 16 forks source link

import { audio } from "@cloudinary/url-gen/qualifiers/source"; missing in "@cloudinary/react": "^1.11.2", #216

Open ashugthub opened 1 year ago

ashugthub commented 1 year ago

I am importing import { audio } from "@cloudinary/url-gen/qualifiers/source"; in react but it's not found although importing text , image and video works for me like below import { text, image, video } from "@cloudinary/url-gen/qualifiers/source";

dannyv-cloudinary commented 1 year ago

Hey @AshuBanctec, thanks for getting in touch.

Could you please let us know what it is you're trying to do? Cloudinary treats audio files the same as video files, so you may be able to use a Video or AdvancedVideo component instead such as in this example here: https://codesandbox.io/s/react-audio-example-hgc5z3

Let us know :) -Danny

ashugthub commented 1 year ago

@dannyv-cloudinary I am trying to apply audio overlay on a video like new CloudinaryVideo("hourglass_timer.mp4").overlay(source(audio("electronic")));

Following https://cloudinary.com/documentation/video_layers article. The thing is when I am importing audio using import { audio } from "@cloudinary/url-gen/qualifiers/source" audio is not present there

dannyv-cloudinary commented 1 year ago

Thanks @AshuBanctec . We're discussing this internally and will get back to you when we have some more information to share.