Avatar

Level 10

Hi,

As far I can see your screenshot, there are two different ways you can do this.

a) We suggest when you use such custom webcam configurations, you should use your WebcamPublisher and WebcamSubscriber classes and your start/stop button instead of the pod itself. And in a WebcamSubscriber, you need to set the publisherIDs property to only the user stream you want to show.

By default, a WebcamSubscriber shows all streams , however if you set the publisherIDs property then you would see only those user streams whose ID you provided to that WebcamSubscriber instance. You can get more help of how to use WebcamPublisher and WebcamSubscriber component instead of the Webcamera pod component directly , in our WebCamera example in examples folder.

b) If you are directly using the WebCamera class, then you need to subsclass it ( to get access to the _sbsSubscriber value ) . _sbsSubscriber is the embedded WebcamSubscriber object that the WebCamera Class  uses internally.  Then set the _sbsSubscriber.publisherIds to the whose stream you want to show like i discussed in point A. It will then only show that stream.

The way currently WebCamera is organized is that it internally contains a WebcamPublisher and a WebcamSubscriber to publish and receive streams respectively. Whenever you are building custom UI with specific requirements, we suggest you to use WebcamPublisher and WebcamSubscriber components instead of the WebCamera pod component directly i.e. point a) above. With the WebcamPublisher and WebcamSubscriber, you can have more power and build any of your own UI according to your requirements

Hope this helps.


Regards

Hironmay Basu