## HTML Audio/Video DOM play() Method
The `play()` method starts playing the current audio or video file.
This method is a core part of the HTML5 Media API, allowing developers to programmatically control media playback using JavaScript.
---
## Syntax
```javascript
mediaElement.play()
```
### Return Value
* **Modern Browsers:** Returns a `Promise`.
* If playback starts successfully, the promise is resolved.
* If playback is prevented (e.g., due to browser autoplay restrictions), the promise is rejected with an error (typically `NotAllowedError`).
* **Older Browsers:** Returns `undefined`.
---
## Browser Support
| Feature | Chrome | Edge/IE | Firefox | Safari | Opera |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **`play()` Method** | Yes | Yes (IE 9+) | Yes | Yes | Yes |
*Note: Internet Explorer 8 and earlier versions do not support the `