> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qomicex.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Media

## Media

Audio/video player. Supports online URLs and blob URLs.

## Signature

```xml theme={null}
<Media Type="Audio" Source="{Data.Music.Url}"
       Controls="True" AutoPlay="False" Loop="True"
       Volume="0.8" Muted="False" />

<Media Type="Video" Source="https://example.com/a.mp4"
       Poster="https://example.com/cover.png" />
```

## Attributes

| Attribute | Type | Default | Description |
| :- | :- | :- | :- |
| `Type` | `Audio` / `Video` | `Audio` | Media type |
| `Source` | URL | Required | https / Blob URL |
| `Controls` | `True` / `False` | `True` | Show playback controls |
| `AutoPlay` | `True` / `False` | `False` | Autoplay |
| `Loop` | `True` / `False` | `False` | Loop |
| `Poster` | URL | — | Video poster |
| `Volume` | 0–1 | — | Initial volume |
| `Muted` | `True` / `False` | `False` | Muted |

## Runtime behavior

* `Audio` renders `<audio>`, `Video` renders `<video>`.
* Static https sources may come from any HTTPS host.
* Dynamic `Source` / `Poster` must match `Widget.ImageHosts`; blob URLs play directly.
* `Volume` is read only on load; two-way binding is not supported.
* `AutoPlay` may be blocked by browser policy and needs user interaction.
* Object URLs are released when the component unmounts.

## Example

```xml theme={null}
<Data Name="Music" Type="Binary" Source="File" Path="C:\Music\song.mp3" />
<Media Type="Audio" Source="{Data.Music.Url}" Controls="True" Loop="True" />
```

## Gotchas

* Online audio/video needs server support for CORS or range requests; otherwise the player reports an error.
* Dynamic media that does not match `ImageHosts` does not play; media servers can still see the request IP.
* No playlists, progress events, or script control interfaces; complex players have to wait for a later release.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.