【发布时间】:2020-07-08 22:48:02
【问题描述】:
我正在使用 agora 进行一对多的直播。因此,我的代码中有一个广播者和多个受众。
await AgoraRtcEngine.enableWebSdkInteroperability(true);
AgoraRtcEngine.setParameters('{\"che.video.lowBitRateStreamParameter\":
{\"width\":320,\"height\":180,\"frameRate\":15,\"bitRate\":140},
{\"che.video.keep_prerotation\":false},{\"che.video.local.camera_index\":1025}}');
await AgoraRtcEngine.setChannelProfile(ChannelProfile.LiveBroadcasting);
await AgoraRtcEngine.setClientRole(ClientRole.Audience);
await AgoraRtcEngine.joinChannel(null, channelName, null, 0);
它工作正常。但问题是视频过于放大,因此无法使用。 在 stackoverflow 上还有一个关于这个问题的问题: Video stream is more zoomed than I'd like and isn't the same as the local stream view. How can I fix this?
对此接受的解决方案是:请在加入频道之前添加以下代码,这应该会有所帮助 -
setParameters:@"{\"che.video.keep_prerotation\":false}" setParameters:@"{\"che.video.local.camera_index\":1025}"
但对我来说,这个解决方案不起作用。如您所见,我已经按照答案的建议添加了参数。 甚至到 github 的链接也显示 404。 谁能帮我解决这个问题。
【问题讨论】: