mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-10-04 16:37:00 +02:00
more videos
This commit is contained in:
@@ -46,7 +46,7 @@ const embeds: { regexp: RegExp; render: (match: RegExpMatchArray, trusted: boole
|
|||||||
},
|
},
|
||||||
// Video
|
// Video
|
||||||
{
|
{
|
||||||
regexp: /(https?:\/\/)([\da-z\.-]+\.[a-z\.]{2,6})([\/\w\.-]+\.(mp4))/im,
|
regexp: /(https?:\/\/)([\da-z\.-]+\.[a-z\.]{2,6})([\/\w\.-]+\.(mp4|mkv|webm))/im,
|
||||||
render: (match) => (
|
render: (match) => (
|
||||||
<AspectRatio ratio={16 / 9} maxWidth="30rem">
|
<AspectRatio ratio={16 / 9} maxWidth="30rem">
|
||||||
<video key={match[0]} src={match[0]} controls />
|
<video key={match[0]} src={match[0]} controls />
|
||||||
|
Reference in New Issue
Block a user