NOTE: I've only tested this on Windows.
This is a guide to using the plugin. When working, it will insert a <video>
or <iframe>
element after <app-mount>
which requires some css to make visible. I have provided a sample css theme that will do so. Currently there are no controls for the video, might add it sometime in the future.
Example:
Download videoBackground.plugin.js
(can right click this link and save as) and drop it in the BetterDiscord plugin folder.
This can be found in:
Discord settings > BetterDiscord > Plugins > 'Open Plugin Folder'
C:\Users\{name}\AppData\Roaming\BetterDiscord\plugins
Restart discord and it should show up like so:
Include the following code to your css for the video element (this is included in the sample theme):
.fullscreen-bg video,
.fullscreen-bg-video{
position: fixed;
top: 50%; left: 50%;
z-index: -100;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
transform: translate(-50%, -50%);
}
If you use a custom theme already, just include the sample css
at the end of your custom css or add to themes folder. It will make all the backgrounds transparent.
Clicking on the Settings
button will open a window like so:
Links that can be used (use full link and not the shorten one):
Youtube video: https://www.youtube.com/watch?v=9sgTdjmTiL4
Youtube playlist: https://www.youtube.com/playlist?list=PLgA8PQBu3V3abH0MbSslHCeVToaa9keLE
Direct link to any MP4/WebM/OGG
file: https://giant.gfycat.com/TenderAgileAsiaticlesserfreshwaterclam.webm
Direct links work with websites such as Streamable and Gfycat. The link must also be https:// or the video will not play. It will autosave and update the video when link is added.
On any streamable video, you can right click the video to pop up a menu which you can again right click on Download Video
and copy the link address like so:
In a similar fashion to Streamable, you can right click a gfycat video and copy the link address: