Thanks for responding Greg. I'll try explicit connections and see if I can work up a stand alone example. I'm a bit surprised it passes the .canAddInput check if it is related to implicit connections.
Design-wise, what is the recommended best practice? Swapping the views or swapping the inputs/outputs on the camera? I have it working swapping the views now.
Post
Replies
Boosts
Views
Activity
I'll have to work that up and it might be quite complicated because if it is a memory issue it might be impacted by other things around it. It would be easier to provide the bigger section of the code base. Would that work? Or I can do a live debugging session with someone.
To work around this in the end I moved up to the view level and swapped the image streams when the user requested a camera swap (so the image feed to the main view went into the inset and the image feed to the inset went into the main view). This feels like a hack but it is sort of working.
But am i correct in thinking this SHOULD work that i should be able to detach the front and back camera and then reattach them as different devices as I show in my description? I did confirm in logging and debugger that they are properly detached and then reattached. I'm not sure if i am missing some preconditions on how to handle the stream or if this should work.