tencentyun / TRTCSDK

腾讯云TRTC音视频服务,国内下载镜像:
https://cloud.tencent.com/document/product/647/32689
1.21k stars 1.07k forks source link

【iOS】-【Set image quality for viewers】 #413

Open anhntsi opened 3 years ago

anhntsi commented 3 years ago

Hi,

I have question about setting image quality: https://intl.cloud.tencent.com/document/product/647/35153. I understand, TRTCSDK only support to setting image quality for anchor.

How to setting image quality for viewers?

Tencent-Alice commented 3 years ago

Hi ,If you have some questions,you can ask me q2562367495

anhntsi commented 3 years ago

Do you can answer above question? How to contact with me?

Tencent-Alice commented 3 years ago

Hi,you can use this parameter to set images quality for viewers - ->> "setVideoEncoderParam()" You can refer to this doc in this link: http://doc.qcloudtrtc.com/group__TRTCCloud__ios.html#a57938e5b62303d705da2ceecf119d74e

anhntsi commented 3 years ago

@Tencent-Alice Yes, this is my code to set image quality:

let videoEncParam = TRTCVideoEncParam()
videoEncParam.videoResolution = TRTCVideoResolution._640_360
videoEncParam.videoBitrate = 900
videoEncParam.videoFps = 15
TRTCCloud.sharedInstance()?.setVideoEncoderParam(videoEncParam)