Change camera settings in running webrtc session

Give us as much detail as possible regarding the issue you're experiencing.

Unity Editor version: 2022.3.5
ML2 OS version:
MLSDK version: 1.9.0
Host OS: (Windows/MacOS) MacOS

We successfully create webrtc session between ML2 and MacOS app (using Unity WebRTC 3.0.0 pre6) we can see stream from ML MR camera etc... all working perfectly.

we want to allow client control resolution and framerate of ML MR camera from Mac. What is the best way to do this? Do we need restart webrtc session completely or we can recreate MediaStream on ML2 and remove old media tracks and add new ones? I assume we need disconnect old MLCamera and connect new one with new resolution?

Hi @feel_digital,

I've reached out to our team regarding this issue and I will report back to you as soon as I learn more about best practices regarding updating resolution and frame rate of ML MR camera from Mac.



Hi @feel_digital,

The MLCamera would need to be recreated with the new desired configuration settings, which would require disconnecting and reconnecting the WebRTC session to be safe.