# `MobMedia.DemoScreen`
[🔗](https://github.com/GenericJam/mob_media/blob/0.1.0/lib/mob_media/demo_screen.ex#L1)

A ready-to-run sample screen exercising `MobMedia`, shipped so a generated
app can try the plugin the moment it's activated. Declared in the plugin
manifest's `:screens` (route `/mob_media/demo`). Delete it (and the
manifest entry) in a real app.

**Pick a file** opens the system picker for audio or video; **Sample tone**
writes a one-second WAV. Either way the screen shows the file's info, the
length of its audio decoded to 16 kHz mono PCM (beside the duration, so a
mismatch is visible), and for a video the frame at one second.

The work runs in a task: `MobMedia`'s functions block their caller until the
answer is ready, and a screen that blocks stops answering taps.

# `dump_state`

# `handle_event`

# `load_state`

# `terminate`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
