playAsync

external fun playAsync(): Promise<Void>(source)

The HTMLMediaElement play() method attempts to begin playback of the media. It returns a Promise which is resolved when playback has been successfully started.

MDN Reference