简体   繁体   English

QuickBlox视频聊天质量

[英]QuickBlox Video Chat Quality

We have this iOS project that uses QuickBlox Video Chat. 我们有一个使用QuickBlox视频聊天的iOS项目。 Basing from the sample app they've given, we were able to implement it successfully. 基于他们给出的示例应用程序,我们能够成功实现它。 When we tested it, the quality looks a bit bad. 当我们测试它时,质量看起来有点糟糕。 Does anyone know how to up the quality of the video chat? 有谁知道如何提高视频聊天的质量?

Thanks. 谢谢。

you can change the video quality by setting kQBVideoChatFrameQualityPreset in videoChatConfiguration, 您可以通过在videoChatConfiguration中设置kQBVideoChatFrameQualityPreset来更改视频质量,

    NSMutableDictionary *videoChatConfiguration = [[QBSettings videoChatConfiguration] mutableCopy];
    [videoChatConfiguration setObject:@20 forKey:kQBVideoChatCallTimeout];
    [videoChatConfiguration setObject:@10 forKey:kQBVideoChatVideoFramesPerSecond];
    // config video quality here
    [videoChatConfiguration setObject:AVCaptureSessionPresetMedium forKey:kQBVideoChatFrameQualityPreset];
    [QBSettings setVideoChatConfiguration:videoChatConfiguration];

The available options: 可用选项:

//achieve high quality video and audio output.defaultvalue.
AVF_EXPORT NSString *const AVCaptureSessionPresetHigh NS_AVAILABLE(10_7, 4_0);
//achieve output video and audio bitrates suitable for sharing over WiFi.
AVF_EXPORT NSString *const AVCaptureSessionPresetMedium NS_AVAILABLE(10_7, 4_0);
//achieve output video and audio bitrates suitable for sharing over 3G.
AVF_EXPORT NSString *const AVCaptureSessionPresetLow NS_AVAILABLE(10_7, 4_0);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM