Change from static one row to:
if (only local video)
width 100%
else if one remote
local
width, height 80x60
z-axis top
remote
width 100%
else if two remotes
local
width, height 80x60
z-axis top
remote
width 50%
center
else if three, four
local. same as above
remote
width, height 50%
else if five, six
local, same
remote
width, height 33%, 50%
else if seven, eight, nine
local, none
remote width height 33%
Change from static one row to:
if (only local video)
width 100%
else if one remote
local
width, height 80x60
z-axis top
remote
width 100%
else if two remotes
local
width, height 80x60
z-axis top
remote
width 50%
center
else if three, four
local. same as above
remote
width, height 50%
else if five, six
local, same
remote
width, height 33%, 50%
else if seven, eight, nine
local, none
remote width height 33%