如何动态设置分辨率,码率,帧率?

发布时间: 2022-03-18 17:42

回答:

    RCRTCVideoStreamConfig *videoConfig =RCRTCEngine.sharedInstance.defaultVideoStream.videoConfig;
    videoConfig.videoSizePreset = RCRTCVideoSizePreset240x240;
    videoConfig.videoFps = 15;
    videoConfig.maxBitrate = 400;
    videoConfig.minBitrate = 120;
    [RCRTCEngine.sharedInstance.defaultVideoStream setVideoConfig:videoConfig];