From f0dbf139d8708194d1ff7e887b1dff48ccc166fa Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 28 Feb 2025 13:52:41 +0100 Subject: spec + break things --- doc/api.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'doc/api.md') diff --git a/doc/api.md b/doc/api.md index 5713df7..b24fd46 100644 --- a/doc/api.md +++ b/doc/api.md @@ -111,19 +111,19 @@ federation. by the server. - `?whepcontrol&` - WebSocket endpoint for controlling WHEP playback. TODO schema -- `?remux&&` -- `?hlssupermultivariant&` +- `?remux&&` +- `?hlssupermultivariant&` - Returns m3u8/HLS playlist of all known multi-variant playlists, one for each segment. The plylist is updated for live media. -- `?hlsmultivariant&&` +- `?hlsmultivariant&&` - Returns m3u8/HLS playlist of all track formats' variant playlists. -- `?hlsvariant&&&&` +- `?hlsvariant&&&&` - Returns m3u8/HLS playlist of all known fragments of this track format. The playlist is updated for live media. - `?info&` - Returns JSON `SegmentInfo` if a segment index is provided, else `MediaInfo` - `?fragmentindex&&` -- `?fragment&&&&&` +- `?fragment&&&&&` ```ts interface MediaInfo { @@ -147,10 +147,13 @@ interface TrackFormat { bandwidth: number; remux: bool; title?: string; + containers: StreamContainer[]; a_sampling_frequency?: number; a_channels?: number; v_resolution_width?: number; av_bit_depth?: number; } +type FragmentIndex = number[]; +type StreamContainer = "webm" | "matroska" | "webvtt" | "jvtt"; ``` -- cgit v1.2.3-70-g09d2