File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file 🌱.
44
5+ ## [ 1.0.2]
6+ ### Added
7+ - 优化推流码率,提高预览清晰度
8+
59## [ 1.0.1]
610### Added
711- 新增开机自启动管理功能
Original file line number Diff line number Diff line change 55 RtpCapabilities ,
66 TransportOptions ,
77 Producer ,
8- RtpParameters
8+ RtpParameters ,
99} from 'mediasoup-client/types' ;
1010import { SimulcastConfig } from 'common/config.interface' ;
1111
@@ -78,17 +78,18 @@ export class MediasoupClient {
7878 }
7979
8080 try {
81- const encodings = simulcastConfigs ?. map ( ( config ) => ( {
82- rid : config . rid ,
83- scaleResolutionDownBy : config . scaleResolutionDownBy ,
84- maxBitrate : config . maxBitRate ,
85- maxFramerate : config . maxFramerate ,
86- } ) ) ;
87- console . log ( 'Producing video with encodings:' , encodings ) ;
88-
81+ // 原画不传递 maxBitrate 和 maxFramerate
82+ // const encodings = simulcastConfigs?.map((config) => ({
83+ // rid: config.rid,
84+ // scaleResolutionDownBy: config.scaleResolutionDownBy,
85+ // ...(config.rid !== 'original' && config.maxBitRate != null
86+ // ? { maxBitrate: config.maxBitRate }
87+ // : {}),
88+ // ...(config.maxFramerate != null ? { maxFramerate: config.maxFramerate } : {}),
89+ // }));
8990 const producer = await this . producerTransport . produce ( {
9091 track,
91- ...( encodings && encodings . length > 0 ? { encodings } : { } ) ,
92+ // ...(encodings && encodings.length > 0 ? { encodings } : {}),
9293 appData : { classId } , // 传递 classId
9394 } ) ;
9495
You can’t perform that action at this time.
0 commit comments