This does not concern peerflix or mkchromecast users. If you're using those, you can stop reading now.
The idea is to minimize what the extension and shim (server) have to do by using MPV profiles. This would not only drastically minimize maintenance, but also increase safety and stability to a maximum.
Configuration
MPV: Set up your MPV profile/s. This is where the actual of the configuration happens.
Shim: Set host:port via command line option or environment variable.
Extension: Paste the shim's URL, add your profile name/s.
Flow
User clicks button.
Extension sends profile name and target URL to shim.
This does not concern
peerflix
ormkchromecast
users. If you're using those, you can stop reading now.The idea is to minimize what the extension and shim (server) have to do by using MPV profiles. This would not only drastically minimize maintenance, but also increase safety and stability to a maximum.
Configuration
Flow
mpv --profile {name} {URL}
.I'm interested in any thoughts on this idea.
NOTE: This is not a duplicate of https://github.com/Thann/play-with-mpv/issues/94, because only supporting MPV profiles is not enough in my opinion.