frontend-frameworks icon indicating copy to clipboard operation
frontend-frameworks copied to clipboard

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

Open ashugthub opened this issue 1 year ago • 3 comments

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";

ashugthub avatar Jul 11 '23 07:07 ashugthub

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

dannyv-cloudinary avatar Jul 11 '23 09:07 dannyv-cloudinary

@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

ashugthub avatar Jul 11 '23 12:07 ashugthub

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

dannyv-cloudinary avatar Jul 13 '23 15:07 dannyv-cloudinary