client-sdk-android icon indicating copy to clipboard operation
client-sdk-android copied to clipboard

Apply callback when camera switched from front to back or vice versa.

Open jinnyuri opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. For Android devices, I want to apply the mirror for the front camera, and in order to do that, I need to get a callback when the camera device is actually switched so there are no timing issues.

Describe the solution you'd like In the funtion switchCamera of LocalVideoTrack, could you please add something callback when onCameraSwitchDone is called, so that the app gets a callback when the camera is actually switched?

Describe alternatives you've considered N/A

Additional context N/A

jinnyuri avatar Mar 29 '24 06:03 jinnyuri

I can get LocalVideoTrack::options with flow. So, I don't know if this request is necessary.

jinnyuri avatar Mar 29 '24 09:03 jinnyuri

Ah yeah, the options will change when the first frame is received from the new camera.

This enhancement's probably a good idea anyways though so that it's more obvious which events are available, and not have to rely on this workaround.

davidliu avatar Mar 29 '24 09:03 davidliu