Ilya Daynatovich 8 роки тому
джерело
коміт
02ae3b3053

+ 76
- 0
css/_filmstrip.scss Переглянути файл

@@ -0,0 +1,76 @@
1
+.filmstrip {
2
+    &__videos {
3
+        @include flex();
4
+        flex-direction: row-reverse;
5
+        flex-wrap: nowrap;
6
+        justify-content: flex-start;
7
+
8
+        position:absolute;
9
+        text-align:right;
10
+        height:196px;
11
+        padding: 10px 10px 17px 5px;
12
+        bottom: 0;
13
+        right: 0;
14
+        width:auto;
15
+        border: 2px solid transparent;
16
+        z-index: 5;
17
+        transition: bottom 2s;
18
+        overflow: visible !important;
19
+        font-size: 0pt; /*!!!Removes the gap between the local video container and the remote videos.*/
20
+
21
+        &.hidden {
22
+            bottom: -196px;
23
+        }
24
+
25
+        .videocontainer {
26
+            display: none;
27
+            position: relative;
28
+            background-size: contain;
29
+            border: 2px solid transparent;
30
+            border-radius:1px;
31
+            margin: 0 $thumbnailVideoMargin;
32
+
33
+            &.videoContainerFocused, &:hover {
34
+                cursor: hand;
35
+            }
36
+
37
+            /**
38
+            * Focused video thumbnail.
39
+            */
40
+            &.videoContainerFocused {
41
+                transition-duration: 0.5s;
42
+                -webkit-transition-duration: 0.5s;
43
+                -webkit-animation-name: greyPulse;
44
+                -webkit-animation-duration: 2s;
45
+                -webkit-animation-iteration-count: 1;
46
+                border: 2px solid $videoThumbnailSelected !important;
47
+                box-shadow: inset 0 0 3px $videoThumbnailSelected,
48
+                0 0 3px $videoThumbnailSelected !important;
49
+            }
50
+
51
+            /**
52
+            * Hovered video thumbnail.
53
+            */
54
+            &:hover {
55
+                cursor: hand;
56
+                border: 2px solid $videoThumbnailHovered;
57
+                box-shadow: inset 0 0 3px $videoThumbnailHovered,
58
+                0 0 3px $videoThumbnailHovered;
59
+            }
60
+
61
+            /* With TemasysWebRTC plugin <object/> element is used
62
+            instead of <video/> */
63
+            & > video,
64
+            & > object {
65
+                cursor: hand;
66
+                border-radius:1px;
67
+                object-fit: cover;
68
+                overflow: hidden;
69
+            }
70
+        }
71
+    }
72
+}
73
+
74
+.filmstripToolbar + #remoteVideos {
75
+    padding-right: 24px;
76
+}

+ 0
- 79
css/_videolayout_default.scss Переглянути файл

@@ -12,34 +12,6 @@
12 12
     overflow: hidden;
13 13
 }
14 14
 
15
-#remoteVideos {
16
-    display: -webkit-box;
17
-    display: -moz-box;
18
-    display: -ms-flexbox;
19
-    display: -webkit-flex;
20
-    display: flex;
21
-    flex-direction: row-reverse;
22
-    flex-wrap: nowrap;
23
-    justify-content: flex-start;
24
-
25
-    position:absolute;
26
-    text-align:right;
27
-    height:196px;
28
-    padding: 10px 10px 17px 5px;
29
-    bottom: 0;
30
-    right: 0;
31
-    width:auto;
32
-    border: 2px solid transparent;
33
-    z-index: 5;
34
-    transition: bottom 2s;
35
-    overflow: visible !important;
36
-    font-size: 0pt; /*!!!Removes the gap between the local video container and the remote videos.*/
37
-}
38
-
39
-#remotevideos.hidden {
40
-    bottom: -196px;
41
-}
42
-
43 15
 .videocontainer {
44 16
     position: relative;
45 17
     text-align: center;
@@ -52,15 +24,6 @@
52 24
     }
53 25
 }
54 26
 
55
-#remoteVideos .videocontainer {
56
-    display: none;
57
-    position: relative;
58
-    background-size: contain;
59
-    border: 2px solid transparent;
60
-    border-radius:1px;
61
-    margin: 0 $thumbnailVideoMargin;
62
-}
63
-
64 27
 /**
65 28
  * The toolbar of the video thumbnail.
66 29
  */
@@ -96,48 +59,10 @@
96 59
     z-index: 2;
97 60
 }
98 61
 
99
-#remoteVideos .videocontainer.videoContainerFocused,
100
-#remoteVideos .videocontainer:hover {
101
-    cursor: hand;
102
-}
103
-/**
104
- * Focused video thumbnail.
105
- */
106
-#remoteVideos .videocontainer.videoContainerFocused {
107
-    transition-duration: 0.5s;
108
-    -webkit-transition-duration: 0.5s;
109
-    -webkit-animation-name: greyPulse;
110
-    -webkit-animation-duration: 2s;
111
-    -webkit-animation-iteration-count: 1;
112
-    border: 2px solid $videoThumbnailSelected !important;
113
-    box-shadow: inset 0 0 3px $videoThumbnailSelected,
114
-                0 0 3px $videoThumbnailSelected !important;
115
-}
116
-
117
-/**
118
- * Hovered video thumbnail.
119
- */
120
-#remoteVideos .videocontainer:hover {
121
-    cursor: hand;
122
-    border: 2px solid $videoThumbnailHovered;
123
-    box-shadow: inset 0 0 3px $videoThumbnailHovered,
124
-              0 0 3px $videoThumbnailHovered;
125
-}
126
-
127 62
 #localVideoWrapper {
128 63
     display:inline-block;
129 64
 }
130 65
 
131
-/* With TemasysWebRTC plugin <object/> element is used
132
-   instead of <video/> */
133
-#remoteVideos .videocontainer>video,
134
-#remoteVideos .videocontainer>object {
135
-    cursor: hand;
136
-    border-radius:1px;
137
-    object-fit: cover;
138
-    overflow: hidden;
139
-}
140
-
141 66
 .flipVideoX {
142 67
     transform: scale(-1, 1);
143 68
     -moz-transform: scale(-1, 1);
@@ -637,8 +562,4 @@
637 562
             cursor: pointer;
638 563
         }
639 564
     }
640
-}
641
-
642
-.filmstripToolbar + #remoteVideos {
643
-    padding-right: 24px;
644 565
 }

+ 1
- 0
css/main.scss Переглянути файл

@@ -63,5 +63,6 @@
63 63
 @import 'aui-components/dropdown';
64 64
 @import '404';
65 65
 @import 'policy';
66
+@import 'filmstrip';
66 67
 
67 68
 /* Modules END */

+ 15
- 13
index.html Переглянути файл

@@ -166,21 +166,23 @@
166 166
                     <img id="recordingSpinner" class="recordingSpinner" src="images/spin.svg"></img>
167 167
                 </span>
168 168
             </div>
169
-
170
-            <div id="remoteVideos">
171
-                <span id="localVideoContainer" class="videocontainer videocontainer_small">
172
-                    <div class="videocontainer__background"></div>
173
-                    <span id="localVideoWrapper">
174
-                        <!--<video id="localVideo" autoplay muted></video> - is now per stream generated -->
169
+            <div class="filmstrip">
170
+                <div class="filmstrip__videos" id="remoteVideos">
171
+                    <span id="localVideoContainer" class="videocontainer videocontainer_small">
172
+                        <div class="videocontainer__background"></div>
173
+                        <span id="localVideoWrapper">
174
+                            <!--<video id="localVideo" autoplay muted></video> - is now per stream generated -->
175
+                        </span>
176
+                        <audio id="localAudio" autoplay muted></audio>
177
+                        <div class="videocontainer__toolbar"></div>
178
+                        <div class="videocontainer__toptoolbar"></div>
179
+                        <div class="videocontainer__hoverOverlay"></div>
175 180
                     </span>
176
-                    <audio id="localAudio" autoplay muted></audio>
177
-                    <div class="videocontainer__toolbar"></div>
178
-                    <div class="videocontainer__toptoolbar"></div>
179
-                    <div class="videocontainer__hoverOverlay"></div>
180
-                </span>
181
-                <audio id="userJoined" src="sounds/joined.wav" preload="auto"></audio>
182
-                <audio id="userLeft" src="sounds/left.wav" preload="auto"></audio>
181
+                    <audio id="userJoined" src="sounds/joined.wav" preload="auto"></audio>
182
+                    <audio id="userLeft" src="sounds/left.wav" preload="auto"></audio>
183
+                </div>
183 184
             </div>
185
+
184 186
         </div>
185 187
     </div>
186 188
     <div id="keyboard-shortcuts" class="keyboard-shortcuts" style="display:none;">

+ 2
- 2
modules/UI/videolayout/FilmStrip.js Переглянути файл

@@ -23,9 +23,9 @@ const FilmStrip = {
23 23
      */
24 24
     _initFilmStripToolbar() {
25 25
         let toolbar = this._generateFilmStripToolbar();
26
+        let container = document.querySelector('.filmstrip');
26 27
 
27
-        document.querySelector('#videospace')
28
-            .insertBefore(toolbar, document.querySelector('#remoteVideos'));
28
+        UIUtil.prependChild(container, toolbar);
29 29
 
30 30
         let iconSelector = '#hideVideoToolbar i';
31 31
         this.toggleFilmStripIcon = document.querySelector(iconSelector);

Завантаження…
Відмінити
Зберегти