Can one auto mute music on Win 10 when call is started?

Can one auto mute music on Win 10 when call is started?

That would open for alot of nasty browsertrolling… However if you wrap it in nwjs or electron u have modules that can control os mixers.