mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-12 05:30:12 +02:00
allow transcode on waveform streamURL (#2060)
This commit is contained in:
@@ -8,7 +8,7 @@ import { QueueSong } from '/@/shared/types/domain-types';
|
||||
export function useSongUrl(
|
||||
song: QueueSong | undefined,
|
||||
current: boolean,
|
||||
transcode: TranscodingConfig,
|
||||
transcode: Partial<TranscodingConfig>,
|
||||
): string | undefined {
|
||||
const prior = useRef(['', '']);
|
||||
const shouldReusePrior = Boolean(
|
||||
@@ -24,7 +24,7 @@ export function useSongUrl(
|
||||
bitrate: transcode.bitrate,
|
||||
format: transcode.format,
|
||||
id: song!.id,
|
||||
transcode: transcode.enabled,
|
||||
transcode: transcode.enabled ?? false,
|
||||
},
|
||||
}),
|
||||
queryKey: [
|
||||
@@ -63,7 +63,7 @@ export function useSongUrl(
|
||||
|
||||
export const getSongUrl = async (
|
||||
song: QueueSong,
|
||||
transcode: TranscodingConfig,
|
||||
transcode: Partial<TranscodingConfig>,
|
||||
skipAutoTranscode?: boolean,
|
||||
) => {
|
||||
const url = await api.controller.getStreamUrl({
|
||||
@@ -73,7 +73,7 @@ export const getSongUrl = async (
|
||||
format: transcode.format,
|
||||
id: song.id,
|
||||
skipAutoTranscode,
|
||||
transcode: transcode.enabled,
|
||||
transcode: transcode.enabled ?? false,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user