play
Play an audio source through the real output device.
The queue entry can be a local file, a remote http(s):// file, an
internet-radio stream, or an HLS (.m3u8) / MPEG-DASH (.mpd)
manifest — the engine detects each kind automatically.
Run: gleam run -m play [path-or-URL] gleam run -m play hls # public HLS test stream gleam run -m play dash # public MPEG-DASH test stream
The Player handle is a NIF resource freed by the BEAM garbage collector
(which stops playback) — no explicit close is needed. Ctrl-C twice opens
the BEAM break menu, which halts the VM and the output device with it.