Change MAX_PER_GROUP to test with 6 gamers connected

This commit is contained in:
Gregoire Parant 2020-06-24 22:21:32 +02:00
parent 9962ca2d48
commit 3ef652b085
2 changed files with 11 additions and 5 deletions

View file

@ -4,7 +4,7 @@ import {PositionInterface} from "_Model/PositionInterface";
import {uuid} from "uuidv4"; import {uuid} from "uuidv4";
export class Group { export class Group {
static readonly MAX_PER_GROUP = 4; static readonly MAX_PER_GROUP = 6;
private id: string; private id: string;
private users: UserInterface[]; private users: UserInterface[];

View file

@ -41,7 +41,7 @@ video{
.webrtc, .activeCam{} .webrtc, .activeCam{}
.activeCam .video-container{ .activeCam .video-container{
position: absolute; position: absolute;
height: 25%; height: 16%;
top: 10px; top: 10px;
margin: 5px; margin: 5px;
right: -100px; right: -100px;
@ -96,16 +96,22 @@ video{
/*CSS size for 2 - 3 elements*/ /*CSS size for 2 - 3 elements*/
.activeCam .video-container:nth-child(1){ .activeCam .video-container:nth-child(1){
/*this is for camera of user*/ /*this is for camera of user*/
top: 75%; top: 84%;
} }
.activeCam .video-container:nth-child(2){ .activeCam .video-container:nth-child(2){
top: 0%; top: 0%;
} }
.activeCam .video-container:nth-child(3){ .activeCam .video-container:nth-child(3){
top: 25%; top: 16%;
} }
.activeCam .video-container:nth-child(4) { .activeCam .video-container:nth-child(4) {
top: 50%; top: 32%;
}
.activeCam .video-container:nth-child(5) {
top: 48%;
}
.activeCam .video-container:nth-child(6) {
top: 64%;
} }
/*btn animation*/ /*btn animation*/