HTMLMediaElement: setSinkId() method - Web APIs | MDN
The setSinkId() method of the HTMLMediaElement interface sets the ID of the audio device to use for output and returns a Promise.