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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南