ioS Mirror Mode

I am having a weird issue. I am looking my Jitsi meeting inside a WebView on ioS/Swift. Something like this:


import SwiftUI


struct ContentView: View {
    //Replace the XXX with the id of the live event
    //This can also be replaced with any widget webview url
    let WEBRTC_URL = URL(string:  "https://my.jitsi.com/meeting-id")
    
    var body: some View {
        NavigationView{
            SwiftUIWebView(url: WEBRTC_URL)
                .navigationTitle("WebView")
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

The issue I am having is the camera on iOS mirror itself. By mirror, if I raise my right hand, it shows on the video that I am raising my left-hand. Is this a Jitsi related issue?

Yes, by default Jitsi mirror the local image.

I’m learning that - is there something in the Jitsi Low Level API I can use to flip the mirror mode? @saghul

We don’t currently expose that functionality.

The solution is actually much easier than I thought. I just used CSS to invert the video the video.

video {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
  }

Oh sorry, I hadn’t realized that you were using the WebView :man_facepalming: