Skip to content

Commit 273cf1a

Browse files
authored
feat: add playerConfig typings (#972)
* add playerConfig types * accidentally put playerConfig in the wrong block
1 parent 977e973 commit 273cf1a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

typings/index.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,16 @@ declare module 'ytdl-core' {
378378
playerMicroformatRenderer: MicroformatRenderer;
379379
};
380380
videoDetails: VideoDetails;
381+
playerConfig: {
382+
audioConfig: {
383+
loudnessDb: number;
384+
perceptualLoudnessDb: number;
385+
enablePerFormatLoudness: boolean;
386+
};
387+
streamSelectionConfig: { maxBitrate: string };
388+
mediaCommonConfig: { dynamicReadaheadConfig: {}[] };
389+
webPlayerConfig: { webPlayerActionsPorting: {}[] };
390+
};
381391
};
382392
videoDetails: MoreVideoDetails;
383393
}

0 commit comments

Comments
 (0)