Avatar

Level 10

Hi John,

Yes the mockup I saw is perfectly possible. Whenever any of the doctor loads his flex app, he can always start sharing his camera.

For the mockup you showed me, you can do this.

Have a webcampub and a set of webcamsubs (one for each doctor, you can do this by only setting pubisherIDs array to just one userID in your every webcamsub) and lay out these webcamsubs in a HBox in your app. The webcamPub will help every doctor to publish his own camera. Give every doctor a publisher role i.e. role 50. This is for the top part of your mockup.

You can have a webcamSub that covers the main x-ray image part and set its publisherID to the camera stream which it wants to show. Now the problem comes, if you want a doctor show his image in the top HBox as well as another camera showing his x-ray. He can't publish normally two camera streams. But you can use groupName feature to give the big subscriber( one showing x-ray) a groupName , and thus everyone can see that who has webcamsub with that groupName. Since groups can be created by owner, you can pre-create a group for that room.

You don't need to dynamically instantiate multiple publishers in your app. Every publishers(doctor) when he loads his app can publish his camera automatically with only one publisher. The camera streams are user dependant and without groups, one user can publish one camera stream.

Hope this is clear to you. Please feel free to ask if something isn't clear

Thanks

Hironmay Basu