- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I tried one more thing: a simple app with a tabbed view, and I saw a couple of things:
- views seem to be disposed and recreated on viewDeactivate / viewActivate (if I print the view instance in the viewActivate handler I get different values every time). I think this is documented but it's easy to forget.
- when the view with the camera gets deactivated the webcamsubscriber component somehow gets deactivated too (maybe it "unsubscribe" from the stream when the SpriteVisualElement gets released
I got my application to work by doing a SpriteVisualElement.removeChild(webcamsub) on viewDeactivate and SpriteVisualElement.addChild(webcamerasub) AND webcamsub.subscribe() on viewActivate (again, all this while storing the ConnectSession in an external singleton, like your application does).
Not sure of what else needs to be done for the webcam publisher but you'll probably need to "re-establish" all the connections (same for audiopublisher and audiosubscriber)
Views
Replies
Total Likes