feat: audio player
This commit is contained in:
parent
9307f270b7
commit
17e298d5a9
@ -52,7 +52,7 @@
|
|||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text img, .text video, .text iframe {
|
.text img, .text video, .text iframe, .text audio {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
|
@ -41,6 +41,11 @@ function transformHttpLink(a: string, pref: UserPreferences) {
|
|||||||
case "webp": {
|
case "webp": {
|
||||||
return <img key={url.toString()} src={url.toString()} />;
|
return <img key={url.toString()} src={url.toString()} />;
|
||||||
}
|
}
|
||||||
|
case "wav":
|
||||||
|
case "mp3":
|
||||||
|
case "ogg": {
|
||||||
|
return <audio key={url.toString()} src={url.toString()} controls />
|
||||||
|
}
|
||||||
case "mp4":
|
case "mp4":
|
||||||
case "mov":
|
case "mov":
|
||||||
case "mkv":
|
case "mkv":
|
||||||
|
Loading…
Reference in New Issue
Block a user