feat: add audio asset support with recording and upload functionality

- Implemented audio asset handling in the API, including download and deletion routes.
- Added audio content type mappings and extraction functions for audio file names and keys.
- Enhanced the asset management UI to support audio uploads, including recording capabilities.
- Updated the database schema to accommodate audio assets with new enum values.
- Integrated audio playback features in the asset list and comment sections.
- Improved user experience with drag-and-drop support for audio files.
This commit is contained in:
Yusuf İpek
2026-02-28 11:01:10 +03:00
parent 9dde7dce44
commit 975ff603e1
14 changed files with 615 additions and 43 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ export interface CommentTag {
export interface VideoAsset {
id: string;
videoId: string;
kind: 'IMAGE' | 'VIDEO';
provider: 'R2_IMAGE' | 'YOUTUBE' | 'BUNNY';
kind: 'IMAGE' | 'VIDEO' | 'AUDIO';
provider: 'R2_IMAGE' | 'YOUTUBE' | 'BUNNY' | 'R2_AUDIO';
displayName: string;
sourceUrl: string | null;
providerVideoId: string | null;