Search code examples
iosxamarinrtmp

Switch to back camera in iOS application using LFLiveKit


I am using LFLiveKit for making a streaming app in Xamarin over RTMP. LFLiveKit has default camera settings set to front camera. I want to make default to rear camera or allow switching of the camera. Not able to figure out how to do it, can someone help if they have earlier worked on LFLiveKit.


Solution

  • I was diving into the Documentation and the Source Code, however I stumbled upon this:

    // @property (assign, nonatomic) AVCaptureDevicePosition captureDevicePosition;
    //[Export("captureDevicePosition", ArgumentSemantic.Assign)]
    //AVCaptureDevicePosition CaptureDevicePosition { get; set; }
    

    Which means that, in this package, the captureDevicePosition is commented, so there is no way to change that. You could try and talk to the developers, or open an issue to see if they can do anything about it.