convert flacs to aac for streaming
This commit is contained in:
@@ -94,9 +94,14 @@ export const music = createTable(
|
||||
id: d.uuid().primaryKey().notNull(),
|
||||
title: d.varchar({ length: 100 }).notNull(),
|
||||
description: d.text(),
|
||||
// Original high-quality upload (e.g. FLAC), offered as a download.
|
||||
fileUrl: d.varchar("file_url", { length: 500 }).notNull(),
|
||||
fileKey: d.varchar("file_key", { length: 200 }).notNull(),
|
||||
fileName: d.varchar("file_name", { length: 200 }).notNull(),
|
||||
// Lighter, streaming-friendly transcode (e.g. AAC) used by the player.
|
||||
streamUrl: d.varchar("stream_url", { length: 500 }),
|
||||
streamKey: d.varchar("stream_key", { length: 200 }),
|
||||
streamName: d.varchar("stream_name", { length: 200 }),
|
||||
createdAt: d
|
||||
.timestamp({ withTimezone: true })
|
||||
.default(sql`CURRENT_TIMESTAMP`)
|
||||
|
||||
Reference in New Issue
Block a user