fix(server): select main stream according to bitrate (#18375)

* fix main stream

* update unit tests

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
Daimolean 2025-05-20 05:33:28 +08:00 committed by GitHub
parent 00a77c2d6a
commit dc8962f2bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 58 additions and 19 deletions

View file

@ -89,7 +89,7 @@ export interface VideoStreamInfo {
export interface AudioStreamInfo {
index: number;
codecName?: string;
frameCount: number;
bitrate: number;
}
export interface VideoFormat {