Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Horizontal and Vertical alignment / webcamSub

bernard_h
Level 3
Level 3

How to control the horizontal and vertical alignment of users inside the webcamSub ?

This is the result with the old and new LCCS webcamSub.

1.jpg

2.jpg

Thank you,

Bernard

1 Accepted Solution
Nigel_Pegg
Correct answer by
Level 10
Level 10

Hi Bernard,

Sorry fot the inconvenience - as part of the improvements to the webcamsubscriber, we did make some changes to the layout system, in order to make it easier to control. So, it might not be as good at automatically guessing the layout you'd like, but you'll much more easily be able to force it to do exactly what you want.

Here's the new property we added to webcamSubscriber:

usersPerRow:int  [read-write]


Specifies the number of user videos to show per row in the webcamsubscriber. Once the number of videos to display exceeds this number, a new row is created with the excess videos. Defaults to 4. For a long horizontal strip, set this to a high number - for a vertical strip, set this to a low number.

So, for your case, simply set usersPerRow to 1, and this will lay out vertically.

hope that helps,

  nigel

View solution in original post

5 Replies
Nigel_Pegg
Correct answer by
Level 10
Level 10

Hi Bernard,

Sorry fot the inconvenience - as part of the improvements to the webcamsubscriber, we did make some changes to the layout system, in order to make it easier to control. So, it might not be as good at automatically guessing the layout you'd like, but you'll much more easily be able to force it to do exactly what you want.

Here's the new property we added to webcamSubscriber:

usersPerRow:int  [read-write]


Specifies the number of user videos to show per row in the webcamsubscriber. Once the number of videos to display exceeds this number, a new row is created with the excess videos. Defaults to 4. For a long horizontal strip, set this to a high number - for a vertical strip, set this to a low number.

So, for your case, simply set usersPerRow to 1, and this will lay out vertically.

hope that helps,

  nigel

View solution in original post

bernard_h
Level 3
Level 3

Great ! it's working!

Is it possible to sort the display by username ?

Thanks

Bernard

Nigel_Pegg
Level 10
Level 10

Sorry, nothing by default. You can also create several webcamsubscribers (each one with its own publisherIDs, one per publisher), and position them any way you'd like.

  nigel