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

Add Cloudinary provider to next-video #330

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ranrub
Copy link

@ranrub ranrub commented Jan 6, 2025

Add Cloudinary provider to the set of available providers in next-video.
fix #223

  • Add Cloudinary provider: Add cloudinary to the list of exported providers in src/providers/providers.ts.
  • Implement Cloudinary upload logic: Create src/providers/cloudinary/provider.ts with functions uploadLocalFile and uploadRequestedFile to handle local and remote file uploads using Cloudinary API.
  • Implement Cloudinary asset transformation: Create src/providers/cloudinary/transformer.ts with a transform function to generate Cloudinary URLs for video sources and posters.
  • Update configuration: Modify src/config.ts to include Cloudinary provider configuration options.

Add Cloudinary provider to the set of available providers in next-video.

* **Add Cloudinary provider**: Add `cloudinary` to the list of exported providers in `src/providers/providers.ts`.
* **Implement Cloudinary upload logic**: Create `src/providers/cloudinary/provider.ts` with functions `uploadLocalFile` and `uploadRequestedFile` to handle local and remote file uploads using Cloudinary API.
* **Implement Cloudinary asset transformation**: Create `src/providers/cloudinary/transformer.ts` with a `transform` function to generate Cloudinary URLs for video sources and posters.
* **Update configuration**: Modify `src/config.ts` to include Cloudinary provider configuration options.
Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-video-demo ❌ Failed (Inspect) Jan 6, 2025 1:37pm

@ranrub ranrub marked this pull request as draft January 6, 2025 13:37
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

Successfully merging this pull request may close these issues.

[FEAT] Support for Cloudinary provider
1 participant