Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
/ BDPlugins Public archive

Better Discord plugin that let's you play videos inside discord using HTML player.

License

Notifications You must be signed in to change notification settings

Peleret/BDPlugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

The code is outdated and as I no longer use better discord I'm not willing to maintain it

Feel free to fork or use the code as you want

PlayAllVideos

The plugin let's you play any video that chromium supports
Tested containers: mkv, mp4, webm, hls, mov, mpeg4, quicktime
Tested codecs: AV1

I wanted to be able to share AV1 encoded videos on discord but they just refuse to support it for some reason, even though discord runs on electron which runs on chromium and chromium supports AV1 playback.
This plugin was mostly written by me, but since I don't know the API fully yet I used TheGreenPig's plugin as reference for how to select only attachments.

How does it work?

The plugin starts by reading names of all currently loaded attachment messages in the channel that weren't already playable by discord and checks if their names end with .mkv or other supported container. If they do, the plugin replaces the <a> tag (download button) that links to the file with <video> tag that let's you play that file.

There's also support for saving volume levels, since by default, all videos play at max volume (volume level is saved in settings file).
You can modify the max width and heigt of video as well as disable volume saving in settings.

About

Better Discord plugin that let's you play videos inside discord using HTML player.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published