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
asked 8 months ago60 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions