# ferroui_media_browser

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-browser/

**module** · [`ferroui-media-browser`](/docs/0.5.0/api/ferroui-media-browser/) · v0.5.0

```rust
module ferroui_media_browser
```

Immutable WebGL2 storage shared by independent producers, video and camera.
Two routes, chosen at run time by where the compositor's WebGL2 context lives:
on the page's thread, native media transfers use TexImageSource directly into
a shared texture; on the render worker of a module with threads, each frame is
a WebCodecs `VideoFrame` transferred to the worker and uploaded there when the
compositor imports it (#601). No framework preview pixel array or readback is
admitted on either route. Browser decoder/driver internals are opaque.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Browser/lib.rs#L1)

## Contents

- [`WebGlFrameProducer`](/docs/0.5.0/api/ferroui-media-browser/struct-webglframeproducer/) — struct
- [`PendingWebGlFrame`](/docs/0.5.0/api/ferroui-media-browser/struct-pendingwebglframe/) — struct
- [`BrowserImageFrame`](/docs/0.5.0/api/ferroui-media-browser/struct-browserimageframe/) — struct
- [`BrowserFrameStream`](/docs/0.5.0/api/ferroui-media-browser/struct-browserframestream/) — struct
- [`unsupported`](/docs/0.5.0/api/ferroui-media-browser/function-unsupported/) — function

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
