Skip to content

Commit a183d86

Browse files
doc: add example for MissingStreamDataDetector
1 parent fbeda95 commit a183d86

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,23 @@ const exampleIssue = {
235235
}
236236
```
237237

238+
239+
### MissingStreamDataDetector
240+
Detects issues with missing data in active inbound streams
241+
```ts
242+
const exampleIssue = {
243+
type: 'stream',
244+
reason: 'missing-video-stream-data' | 'missing-audio-stream-data',
245+
trackIdentifier: 'some-track-id',
246+
statsSample: {
247+
bytesReceivedDelta: 0, // always zero if issue detected
248+
bytesReceived: 2392384,
249+
trackDetached: false,
250+
trackEnded: false,
251+
},
252+
}
253+
```
254+
238255
## Roadmap
239256

240257
- [ ] Adaptive getStats() call interval based on last getStats() execution time

0 commit comments

Comments
 (0)