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
posta 9 mesi fa61 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande