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.