Creates the video.play promise and adds the success and error handlers to it.
Not all browsers support the video.play promise, so this method will fall back to the old-school way of handling the video.play call.
See https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play#browser_compatibility for details.
name | type | arguments | Default | description |
---|---|---|---|---|
catchError | boolean | <optional> | true |
Should the error be caught and the video marked as failed to play? |