@rivmux/protocol 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +82 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +11 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,57 @@
|
|
|
1
|
+
/** Playback behavior applied to the attached video element. */
|
|
1
2
|
export type PlaybackOptions = {
|
|
3
|
+
/** Request playback automatically after the startup buffer is ready. */
|
|
2
4
|
autoPlay?: boolean;
|
|
5
|
+
/** Sets `HTMLVideoElement.muted` before playback starts. */
|
|
3
6
|
muted?: boolean;
|
|
4
7
|
};
|
|
8
|
+
/** Low-latency live playback policy, expressed in seconds. */
|
|
5
9
|
export type LatencyOptions = {
|
|
10
|
+
/** Minimum buffered duration required before automatic playback starts. */
|
|
6
11
|
startupBuffer?: number;
|
|
12
|
+
/** Desired live latency behind the live edge. */
|
|
7
13
|
target?: number;
|
|
14
|
+
/** Maximum live latency before the runtime seeks closer to the live edge. */
|
|
8
15
|
max?: number;
|
|
16
|
+
/** Forward buffer threshold where the stream loader may pause. */
|
|
9
17
|
maxForwardBuffer?: number;
|
|
18
|
+
/** Buffered duration to keep behind the current playhead during cleanup. */
|
|
10
19
|
backwardBuffer?: number;
|
|
11
20
|
};
|
|
21
|
+
/** HTTP request settings for stream loading. */
|
|
12
22
|
export type NetworkOptions = {
|
|
23
|
+
/** Additional request headers sent with stream fetch requests. */
|
|
13
24
|
headers?: Record<string, string>;
|
|
25
|
+
/** Fetch credentials mode used for stream requests. */
|
|
14
26
|
credentials?: RequestCredentials;
|
|
27
|
+
/** Retry policy for recoverable stream request failures. */
|
|
15
28
|
retry?: {
|
|
29
|
+
/** Maximum number of attempts for a stream request. */
|
|
16
30
|
maxAttempts?: number;
|
|
31
|
+
/** Base retry delay in milliseconds. */
|
|
17
32
|
backoffMs?: number;
|
|
18
33
|
};
|
|
19
34
|
};
|
|
35
|
+
/** Runtime asset and worker selection options. */
|
|
20
36
|
export type RuntimeOptions = {
|
|
37
|
+
/** Must remain true while M1 supports only worker-backed Media Source Extensions. */
|
|
21
38
|
preferWorkerMse?: boolean;
|
|
39
|
+
/** Overrides the worker script URL used by the default runtime. */
|
|
22
40
|
workerUrl?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Overrides the WASM asset URL. The matching wasm-bindgen JS glue file must
|
|
43
|
+
* be available at the same path with `.js` instead of `.wasm`.
|
|
44
|
+
*/
|
|
23
45
|
wasmUrl?: string;
|
|
24
|
-
wasmModule?: WebAssembly.Module;
|
|
25
46
|
};
|
|
47
|
+
/** Diagnostics and debug reporting options. */
|
|
26
48
|
export type DiagnosticsOptions = {
|
|
49
|
+
/** Requested runtime stats interval in milliseconds. */
|
|
27
50
|
statsIntervalMs?: number;
|
|
51
|
+
/** Enables debug-oriented behavior where supported by the runtime. */
|
|
28
52
|
debug?: boolean;
|
|
29
53
|
};
|
|
54
|
+
/** Top-level options accepted by `new RivmuxPlayer(url, options)`. */
|
|
30
55
|
export type RivmuxPlayerOptions = {
|
|
31
56
|
playback?: PlaybackOptions;
|
|
32
57
|
latency?: LatencyOptions;
|
|
@@ -48,9 +73,9 @@ export type NormalizedRuntimeOptions = {
|
|
|
48
73
|
preferWorkerMse: boolean;
|
|
49
74
|
workerUrl?: string;
|
|
50
75
|
wasmUrl?: string;
|
|
51
|
-
wasmModule?: WebAssembly.Module;
|
|
52
76
|
};
|
|
53
77
|
export type NormalizedDiagnosticsOptions = Required<DiagnosticsOptions>;
|
|
78
|
+
/** Fully populated player options after defaults are applied. */
|
|
54
79
|
export type NormalizedRivmuxPlayerOptions = {
|
|
55
80
|
playback: NormalizedPlaybackOptions;
|
|
56
81
|
latency: NormalizedLatencyOptions;
|
|
@@ -58,37 +83,67 @@ export type NormalizedRivmuxPlayerOptions = {
|
|
|
58
83
|
runtime: NormalizedRuntimeOptions;
|
|
59
84
|
diagnostics: NormalizedDiagnosticsOptions;
|
|
60
85
|
};
|
|
86
|
+
/** Container, codec, and track metadata detected from the stream. */
|
|
61
87
|
export type MediaInfo = {
|
|
88
|
+
/** Detected media container, such as `flv` or `fmp4`. */
|
|
62
89
|
container: string;
|
|
90
|
+
/** Video codec string when the stream contains video. */
|
|
63
91
|
videoCodec?: string;
|
|
92
|
+
/** Audio codec string when the stream contains audio. */
|
|
64
93
|
audioCodec?: string;
|
|
94
|
+
/** Video width in pixels. */
|
|
65
95
|
width?: number;
|
|
96
|
+
/** Video height in pixels. */
|
|
66
97
|
height?: number;
|
|
98
|
+
/** Audio sample rate in Hz. */
|
|
67
99
|
audioSampleRate?: number;
|
|
100
|
+
/** Number of audio channels. */
|
|
68
101
|
audioChannelCount?: number;
|
|
69
102
|
};
|
|
103
|
+
/** Runtime diagnostics emitted by the `stats` event. */
|
|
70
104
|
export type PlayerStats = {
|
|
105
|
+
/** Number of source bytes received from the stream loader. */
|
|
71
106
|
bytesReceived?: number;
|
|
107
|
+
/** Current estimated network speed in bytes per second. */
|
|
72
108
|
currentNetworkSpeed?: number;
|
|
109
|
+
/** Duration since the last network chunk, in milliseconds. */
|
|
73
110
|
networkIdleMs?: number;
|
|
111
|
+
/** Number of transmuxed bytes emitted to MSE. */
|
|
74
112
|
outputBytes?: number;
|
|
113
|
+
/** Number of media segments waiting to be appended. */
|
|
75
114
|
appendQueueLength?: number;
|
|
115
|
+
/** Total bytes waiting in the append queue. */
|
|
76
116
|
appendQueueBytes?: number;
|
|
117
|
+
/** Maximum append queue length observed in the current session. */
|
|
77
118
|
appendQueueMaxLength?: number;
|
|
119
|
+
/** Maximum append queue bytes observed in the current session. */
|
|
78
120
|
appendQueueMaxBytes?: number;
|
|
121
|
+
/** Whether the loader is paused by latency/buffer policy. */
|
|
79
122
|
loaderPaused?: boolean;
|
|
123
|
+
/** Whether any SourceBuffer is currently updating. */
|
|
80
124
|
sourceBufferUpdating?: boolean;
|
|
125
|
+
/** Number of active SourceBuffer instances. */
|
|
81
126
|
sourceBufferCount?: number;
|
|
127
|
+
/** Start time of the buffered range used for latency calculations. */
|
|
82
128
|
bufferedStart?: number;
|
|
129
|
+
/** End time of the buffered range used for latency calculations. */
|
|
83
130
|
bufferedEnd?: number;
|
|
131
|
+
/** Buffered duration ahead of the current playhead. */
|
|
84
132
|
bufferedDuration?: number;
|
|
133
|
+
/** Number of buffered ranges on the attached video element. */
|
|
85
134
|
bufferedRangeCount?: number;
|
|
135
|
+
/** Current video playhead time. */
|
|
86
136
|
currentTime?: number;
|
|
137
|
+
/** Estimated live latency in seconds. */
|
|
87
138
|
liveLatency?: number;
|
|
139
|
+
/** Current video playback rate. */
|
|
88
140
|
playbackRate?: number;
|
|
141
|
+
/** Current `HTMLMediaElement.readyState`. */
|
|
89
142
|
readyState?: number;
|
|
143
|
+
/** Dropped video frame count when the browser exposes it. */
|
|
90
144
|
droppedFrames?: number;
|
|
91
145
|
};
|
|
146
|
+
/** Snapshot of the attached video element sent from the player to the worker. */
|
|
92
147
|
export type VideoElementState = {
|
|
93
148
|
currentTime: number;
|
|
94
149
|
readyState: number;
|
|
@@ -96,6 +151,7 @@ export type VideoElementState = {
|
|
|
96
151
|
paused: boolean;
|
|
97
152
|
droppedFrames?: number;
|
|
98
153
|
};
|
|
154
|
+
/** Playback operation requested by the worker-side latency controller. */
|
|
99
155
|
export type PlaybackControlAction = {
|
|
100
156
|
type: 'play';
|
|
101
157
|
reason: 'startup-buffer-ready';
|
|
@@ -108,35 +164,58 @@ export type PlaybackControlAction = {
|
|
|
108
164
|
targetTime: number;
|
|
109
165
|
reason: 'latency-max-exceeded';
|
|
110
166
|
};
|
|
167
|
+
/** Result of applying a worker-requested playback operation. */
|
|
111
168
|
export type PlaybackControlResult = {
|
|
112
169
|
type: PlaybackControlAction['type'];
|
|
113
170
|
accepted: boolean;
|
|
114
171
|
message?: string;
|
|
115
172
|
};
|
|
173
|
+
/** High-level category for a player error. */
|
|
116
174
|
export type PlayerErrorKind = 'network' | 'unsupported' | 'demux' | 'codec' | 'mux' | 'mse' | 'runtime';
|
|
175
|
+
/** Structured error emitted by the player and runtime. */
|
|
117
176
|
export type PlayerError = {
|
|
177
|
+
/** Broad error category. */
|
|
118
178
|
kind: PlayerErrorKind;
|
|
179
|
+
/** Stable machine-readable error code. */
|
|
119
180
|
code: string;
|
|
181
|
+
/** Human-readable error message. */
|
|
120
182
|
message: string;
|
|
183
|
+
/** Whether playback should be treated as unrecoverable. */
|
|
121
184
|
terminal: boolean;
|
|
185
|
+
/** Optional underlying error or diagnostic payload. */
|
|
122
186
|
cause?: unknown;
|
|
123
187
|
};
|
|
188
|
+
/** Structured recoverable warning emitted by the player and runtime. */
|
|
124
189
|
export type PlayerWarning = {
|
|
190
|
+
/** Stable machine-readable warning code. */
|
|
125
191
|
code: string;
|
|
192
|
+
/** Human-readable warning message. */
|
|
126
193
|
message: string;
|
|
194
|
+
/** Optional underlying warning payload. */
|
|
127
195
|
cause?: unknown;
|
|
128
196
|
};
|
|
197
|
+
/** Payload map for player events. */
|
|
129
198
|
export type PlayerEventMap = {
|
|
199
|
+
/** Worker/runtime initialization completed. */
|
|
130
200
|
ready: undefined;
|
|
201
|
+
/** Stream metadata was detected. */
|
|
131
202
|
mediaInfo: MediaInfo;
|
|
203
|
+
/** Runtime diagnostics were sampled. */
|
|
132
204
|
stats: PlayerStats;
|
|
205
|
+
/** A recoverable runtime warning occurred. */
|
|
133
206
|
warning: PlayerWarning;
|
|
207
|
+
/** A structured runtime error occurred. */
|
|
134
208
|
error: PlayerError;
|
|
209
|
+
/** The stream stopped and the media source was detached. */
|
|
135
210
|
stopped: undefined;
|
|
211
|
+
/** The worker/runtime was destroyed. */
|
|
136
212
|
destroyed: undefined;
|
|
137
213
|
};
|
|
214
|
+
/** Player event name. */
|
|
138
215
|
export type PlayerEventType = keyof PlayerEventMap;
|
|
216
|
+
/** Typed player event listener. */
|
|
139
217
|
export type PlayerEventListener<T extends PlayerEventType> = (payload: PlayerEventMap[T]) => void;
|
|
218
|
+
/** Command sent from the player facade to the runtime worker. */
|
|
140
219
|
export type WorkerCommand = {
|
|
141
220
|
type: 'init';
|
|
142
221
|
id: string;
|
|
@@ -160,6 +239,7 @@ export type WorkerCommand = {
|
|
|
160
239
|
} | {
|
|
161
240
|
type: 'destroy';
|
|
162
241
|
};
|
|
242
|
+
/** Message sent from the runtime worker to the player facade. */
|
|
163
243
|
export type WorkerMessage = {
|
|
164
244
|
type: 'worker-ready';
|
|
165
245
|
} | {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GAAG;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,8DAA8D;AAC9D,MAAM,MAAM,cAAc,GAAG;IAC3B,2EAA2E;IAC3E,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf,6EAA6E;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG;IAC3B,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEhC,uDAAuD;IACvD,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAEhC,4DAA4D;IAC5D,KAAK,CAAC,EAA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AA;CAAE,GAC3D;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivmux/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Protocol TypeScript contracts for Rivmux packages.",
|
|
5
|
+
"homepage": "https://www.npmjs.com/package/@rivmux/protocol",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/yangxu52/Rivmux/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/yangxu52/Rivmux.git",
|
|
12
|
+
"directory": "packages/protocol"
|
|
13
|
+
},
|
|
5
14
|
"license": "Apache-2.0",
|
|
6
15
|
"type": "module",
|
|
7
16
|
"sideEffects": false,
|
|
@@ -18,7 +27,7 @@
|
|
|
18
27
|
},
|
|
19
28
|
"types": "./dist/index.d.ts",
|
|
20
29
|
"devDependencies": {
|
|
21
|
-
"typescript": "~
|
|
30
|
+
"typescript": "~6.0.3",
|
|
22
31
|
"vitest": "^4.1.9"
|
|
23
32
|
},
|
|
24
33
|
"engines": {
|