Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/support-window.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"5.7": "2024-11-22T17:16:09.621Z",
"5.8": "2025-02-28T16:52:08.252Z",
"5.9": "2025-07-31T17:54:06.216Z",
"6.0": "2026-03-23T16:14:45.521Z"
"6.0": "2026-03-23T16:14:45.521Z",
"7.0": "2026-07-08T15:55:18.431Z"
}
2 changes: 1 addition & 1 deletion docs/support-window.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"remark-gfm": "^4.0.0",
"remark-validate-links": "^13.0.0",
"risk": "^0.0.4",
"typescript": "next"
"typescript": "<7"
},
"pnpm": {
"overrides": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ async function topLevel() {
// field.
const processor = new MediaStreamTrackProcessor({ track: generator });

// $ExpectType number
processor.discardedFrames;

// $ExpectType number
processor.totalFrames;

// $ExpectType ReadableStreamDefaultReader<VideoFrame>
const reader = processor.readable.getReader();

Expand Down
7 changes: 7 additions & 0 deletions types/dom-mediacapture-transform/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ interface MediaStreamTrackProcessor<T extends AudioData | VideoFrame> {
readonly readable: ReadableStream<T>;
/** Allows sending control signals to the MediaStreamTrack provided to the constructor. */
readonly writableControl: WritableStream<MediaStreamTrackSignal>;
/** The number of frames discarded by this MediaStreamTrackProcessor. */
readonly discardedFrames: number;
/**
* The number of frames received by this MediaStreamTrackProcessor including
* discarded frames.
*/
readonly totalFrames: number;
}

declare var MediaStreamTrackProcessor: {
Expand Down