setSinkId method

JSPromise<JSAny?> setSinkId(
  1. String sinkId
)

The HTMLMediaElement.setSinkId() method of the Audio Output Devices API sets the ID of the audio device to use for output and returns a Promise.

This only works when the application is permitted to use the specified device. For more information see the security requirements below.

Implementation

external JSPromise<JSAny?> setSinkId(String sinkId);