# MediaPlayer Native Control

***

## Features

1. **Audio Monitoring**: Automatically integrates with all `<audio>` elements on your site.
2. **Video Monitoring**: Automatically integrates with all `<video>` elements on your site.
3. **Native Device Control**: Syncs playback, pause, and stop actions with native device media controls.
4. **Dynamic Media Detection**: Automatically monitors new audio/video elements added dynamically to your site.

***

## How to Use

1\. Configure Settings

* Navigate to **Settings** → **WTN MediaPlayer Controls**.

<figure><img src="/files/a9EbBuFPRMuC1Tb7Ypde" alt="" width="167"><figcaption></figcaption></figure>

* Enable or disable:
  * **Audio Monitoring**: Controls for `<audio>` elements.
  * **Video Monitoring**: Controls for `<video>` elements.

<figure><img src="/files/2Mti4E8r5xepPrRCMlRk" alt=""><figcaption></figcaption></figure>

* Click **Save Changes**.

#### 2. Native Media Controls

* Ensure your app integrates with the **Webtonative MediaPlayer** framework.
* Use `data-thumbnail` attribute on your media elements to provide thumbnail images for native controls.

Example:

```html
<audio src="audio.mp3" data-thumbnail="thumbnail.jpg" controls></audio>
<video src="video.mp4" data-thumbnail="thumbnail.jpg" controls></video>
```

***

## Advanced Features

* **Dynamic Monitoring**: Automatically detects and integrates new `<audio>` or `<video>` elements added to your page.
* **Device Integration**: Works seamlessly with Webtonative's MediaPlayer functions.

***

## Troubleshooting

* **MediaPlayer Not Found**: Ensure the Webtonative MediaPlayer library is included in your app.
* **No Controls Appearing**: Verify that monitoring is enabled in the plugin settings.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webtonative.com/website-plugins/wordpress/webtonative-media-player/mediaplayer-native-control.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
