Skip to content

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