File size: 1,645 Bytes
bec56cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* General styling for the body - sets the base font and margins for the page */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  text-align: center;
}

/* Styles for controlling the layout and spacing of control buttons (e.g., 'Join', 'Leave', etc.) */
.controls {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Container for holding all video elements. It uses Flexbox for a flexible and responsive layout */
#videos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  justify-content: center;
}

/* Styles for individual video elements within the #videos container */
#videos video {
  max-width: 500px;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

/* Styling for the outer container of each video, providing a uniform appearance and layout */
.video-container {
  position: relative;
  display: inline-block;
  background-color: lightgray;
  padding: 0.5%; /* Adjusts size of video relatively */
  margin: 5px;
  aspect-ratio: 16 / 9;
  width: 400px;
}

/* Styles for displaying the session ID as an overlay on the bottom left corner of the video */
.session-id-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  font-size: 0.8em; /* Adjust based on your UI requirements */
}

/* Additional styling specifics for video elements, ensuring they fit well within their containers */
.video-element {
  width: 100%;
  height: auto;
  background-color: black;
}

#status {
  display: none;
}

#toggle-camera {
  display: none;
}

#camera-selector {
  display: none;
}

#join-token {
  display: none;
}