Two ends of a WebRTC connection could even negotiate codecs based on power/processing needs, with one sending a WebAssembly codec to the other as a fallback if needed ("hey you don't support this thing that I support in hardware, but you are plugged in, so burn some more electrons on your end").
WebAssembly SIMD [1] will definitely help with performance here.