Simultaneously use phone front camera for ar and second use case

Hey,

is there a possibility to use the smartphone camera stream in two places at once? (As far as I know it isn’t, but is there a workaround?)

More specifically, I need to use the camera for both the WebXR mode (augmented reality) of three.js and in another place (opencv.js) at the same time.
Right now, the camera stream to opencv.js stops, as soon as I enable AR in Three.js, which then runs perfectly.
The reason, why I would like to find a solution to use both simultaneously, is, that I want to control objects in 3D space according to some computer vision input.
I guess that I would have to only keep one stream and copy the data to the other one, but I don’t know how and if that’s the right approach.

Hints or help would be very much appreciated!
Best