mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 06:32:08 -05:00
feat: support Streamable embeds
This commit is contained in:
parent
34ce1d1a86
commit
95d4f61d7f
2 changed files with 12 additions and 1 deletions
|
@ -67,7 +67,8 @@ export default function Embed({ embed }: Props) {
|
|||
break;
|
||||
}
|
||||
case "Twitch":
|
||||
case "Lightspeed": {
|
||||
case "Lightspeed":
|
||||
case "Streamable": {
|
||||
mw = 1280;
|
||||
mh = 720;
|
||||
break;
|
||||
|
|
|
@ -92,6 +92,16 @@ export default function EmbedMedia({ embed, width, height }: Props) {
|
|||
/>
|
||||
);
|
||||
}
|
||||
case "Streamable": {
|
||||
return (
|
||||
<iframe
|
||||
src={`https://streamable.com/e/${embed.special.id}?loop=0`}
|
||||
seamless
|
||||
loading="lazy"
|
||||
style={{ height }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
default: {
|
||||
if (embed.video) {
|
||||
const url = embed.video.url;
|
||||
|
|
Loading…
Reference in a new issue