aws-samples / amazon-ivs-broadcast-android-sample

MIT No Attribution
10 stars 8 forks source link

Question-Does SDK support broadcast two camera source at same time? #44

Open KunNiu opened 1 year ago

KunNiu commented 1 year ago

My case is the host maybe want to open both back and front camera, I tried to use Mixer to bind two cameras, but got error:

2023-08-07 15:25:34.857 12446-12817 AmazonIVS            E  Cannot attach camera device because another device is currently attached
2023-08-07 15:25:34.857 12446-12817 AmazonIVS            E  Failed to attach device 0
dang-tommy commented 1 year ago

Hi @KunNiu, the SDK does not current support broadcasting with two camera sources at the same time. You may still be able to achieve your goal by writing your own application logic to capture the camera output and input those frames into custom image sources. We have a guide for using custom image sources that may help.