TheGreenPig / BetterDiscordPlugins

A repository where I have all my BetterDiscord Plugins
30 stars 12 forks source link

[FileViewer Request] Opotion to embed a video player on known video file types #28

Open BuyMyMojo opened 1 year ago

BuyMyMojo commented 1 year ago

For specific codecs like AV1 or .mkv containers discord will not embed as videos.

Could FileViewer be modified to detect these files and place a basic HTML5 video player either bellow or in place of the file?

I placed a video player inside the message div of an av1 video file that I know discord won't play and it does in fact play back properly

<video width="320" height="240" controls>
    <source src="https://cdn.discordapp.com/attachments/895445608570163220/1106062699714064405/discord.mp4" type="video/mp4">
</video>

image

Knewest commented 11 months ago

Seeing as this has not been answered or acknowledged in literal months (I actually made a similar suggestion almost a year ago), I will take the liberty and let you know that I am developing a plugin that does exactly this. Look out for it in the future.