fixes
This commit is contained in:
parent
ab3c60532e
commit
ecf584323e
|
|
@ -3,7 +3,7 @@ import type { CommentAction } from "./schema";
|
||||||
type ActionAttachmentType = "empty" | "image" | "voice";
|
type ActionAttachmentType = "empty" | "image" | "voice";
|
||||||
|
|
||||||
const imageExtensions = ["jpeg", "jpg", "png"];
|
const imageExtensions = ["jpeg", "jpg", "png"];
|
||||||
const voiceExtensions = ["mp3"];
|
const voiceExtensions = ["mp3", "ogg"];
|
||||||
|
|
||||||
export function getActionAttachmentType(
|
export function getActionAttachmentType(
|
||||||
action: CommentAction,
|
action: CommentAction,
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@ export default function ActionCard({
|
||||||
<div className="flex justify-center p-3">
|
<div className="flex justify-center p-3">
|
||||||
<audio controls>
|
<audio controls>
|
||||||
<source src={action.fileUrls[0]} type="audio/mp3" />
|
<source src={action.fileUrls[0]} type="audio/mp3" />
|
||||||
|
<source src={action.fileUrls[0]} type="audio/ogg" />
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -279,6 +279,7 @@ export default function ActionEditor({
|
||||||
<div className="mt-10 flex justify-center">
|
<div className="mt-10 flex justify-center">
|
||||||
<audio controls>
|
<audio controls>
|
||||||
<source src={voiceUrl} type="audio/mp3" />
|
<source src={voiceUrl} type="audio/mp3" />
|
||||||
|
<source src={voiceUrl} type="audio/ogg" />
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user