Enable proprietary codec in Electron js

I want to use proprietary codec in electron js because I am making a client for jellyfin but I was not able to find a proper solution, i looked into using mpv.js but that seems to be abandoned. I don’t have issues with build my own electron build.