Giter VIP home page Giter VIP logo

bdplugins's Introduction

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.

bdplugins's People

Contributors

peleret avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.