play method
The HTMLMediaElement
play()
method attempts to begin playback of the media.
It returns a Promise
which is resolved when playback has been
successfully started.
Failure to begin playback for any reason, such as permission issues, result in the promise being rejected.
Implementation
external JSPromise<JSAny?> play();