AWS IVS Broadcast (Web - SP) - Switch camera front/back

0

AWS IVS Broadcast SDK (Web) version 1.5.0 We tried to start the broadcast and then switched the front camera to the back camera by using the code below:

const videoConstraints: MediaTrackConstraints = {
    ...,
    facingMode: isFacingMode ?  'user'  :  'environment',
  }

Ref: https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/facingMode It only worked in IOS >= 16.4 and didn't work in android and IOS < 16.4.

kc3
已提问 9 个月前61 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则