mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 16:40:58 -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;
|
break;
|
||||||
}
|
}
|
||||||
case "Twitch":
|
case "Twitch":
|
||||||
case "Lightspeed": {
|
case "Lightspeed":
|
||||||
|
case "Streamable": {
|
||||||
mw = 1280;
|
mw = 1280;
|
||||||
mh = 720;
|
mh = 720;
|
||||||
break;
|
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: {
|
default: {
|
||||||
if (embed.video) {
|
if (embed.video) {
|
||||||
const url = embed.video.url;
|
const url = embed.video.url;
|
||||||
|
|
Loading…
Reference in a new issue