mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-23 21:55:19 +00:00
fix audio permissions (#894)
This commit is contained in:
committed by
GitHub
parent
9e64d52461
commit
1d1a520be9
@@ -79,9 +79,7 @@ const useMp3 = (transcriptId: string, waiting?: boolean): Mp3Response => {
|
|||||||
// Audio is not deleted, proceed to load it
|
// Audio is not deleted, proceed to load it
|
||||||
audioElement = document.createElement("audio");
|
audioElement = document.createElement("audio");
|
||||||
const audioUrl = `${API_URL}/v1/transcripts/${transcriptId}/audio/mp3`;
|
const audioUrl = `${API_URL}/v1/transcripts/${transcriptId}/audio/mp3`;
|
||||||
audioElement.src = accessTokenInfo
|
audioElement.src = audioUrl;
|
||||||
? `${audioUrl}?token=${encodeURIComponent(accessTokenInfo)}`
|
|
||||||
: audioUrl;
|
|
||||||
audioElement.crossOrigin = "anonymous";
|
audioElement.crossOrigin = "anonymous";
|
||||||
audioElement.preload = "auto";
|
audioElement.preload = "auto";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user