Skip to content
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

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

Open
ashugthub opened this issue Jul 11, 2023 · 3 comments

Comments

@ashugthub
Copy link

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 ashugthub changed the title import { audio } from "@cloudinary/url-gen/qualifiers/source"; missing import { audio } from "@cloudinary/url-gen/qualifiers/source"; missing in "@cloudinary/react": "^1.11.2", Jul 11, 2023
@dannyv-cloudinary
Copy link
Contributor

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
Copy link
Author

@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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants