Skip to content

Commit 361a718

Browse files
committed
Fix : Resolve Coturn Server Issue
KMS 서버를 이용한 화상채팅 비디오 안나오는 이슈 ssl인증서 경로 수정후 해결 Resolves : #1
1 parent 0d65077 commit 361a718

File tree

4 files changed

+46
-44
lines changed

4 files changed

+46
-44
lines changed

src/main/resources/static/css/rtc/kurentostyle.css

+24-41
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
1-
/*
2-
* (C) Copyright 2016 Kurento (http://kurento.org/)
3-
*
4-
* Licensed under the GNU General Public License v3.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
16-
*/
1+
172
@CHARSET "UTF-8";
183

194
body {
205
font: 13px/20px "Lucida Grande", Tahoma, Verdana, sans-serif;
21-
color: #404040;
22-
background: #0ca3d2;
6+
background-color: #36393f;
7+
color: #ffffff;
238
}
249

2510
input[type=checkbox], input[type=radio] {
@@ -237,6 +222,7 @@ input[type=button]:active, input[type=submit]:active {
237222
width: 100%;
238223
height: 70%;
239224
object-fit: cover;
225+
border-radius: 10px;
240226
}
241227

242228

@@ -253,6 +239,7 @@ input[type=button]:active, input[type=submit]:active {
253239
width: 100%;
254240
height: 70%;
255241
object-fit: cover;
242+
border-radius: 10px;
256243
}
257244

258245

@@ -269,6 +256,8 @@ input[type=button]:active, input[type=submit]:active {
269256
width: 100%;
270257
height: 70%;
271258
object-fit: cover;
259+
border-radius: 20px;
260+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
272261
}
273262

274263

@@ -285,6 +274,8 @@ input[type=button]:active, input[type=submit]:active {
285274
width: 100%;
286275
height: 70%;
287276
object-fit: cover;
277+
border-radius: 20px;
278+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
288279
}
289280

290281

@@ -300,6 +291,8 @@ input[type=button]:active, input[type=submit]:active {
300291
.participant video, .participant.main video {
301292
width: 100%;
302293
height: 70%;
294+
border-radius: 20px;
295+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
303296
object-fit: cover;
304297
}
305298

@@ -315,6 +308,8 @@ input[type=button]:active, input[type=submit]:active {
315308

316309
.participant video, .participant.main video {
317310
width: 100%;
311+
border-radius: 20px;
312+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
318313
height: 70%;
319314
object-fit: cover;
320315
}
@@ -333,6 +328,8 @@ input[type=button]:active, input[type=submit]:active {
333328
width: 100%;
334329
height: 70%;
335330
object-fit: cover;
331+
border-radius: 20px;
332+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
336333
}
337334

338335

@@ -356,49 +353,35 @@ input[type=button]:active, input[type=submit]:active {
356353
animation-fill-mode: forwards;
357354
}
358355

359-
@
360-
-webkit-keyframes disapear {
361-
362-
50
363-
%
356+
@-webkit-keyframes disapear { 50%
364357
{
365358
-webkit-transform: translateX(-5%)
366359
;
367360
transform: translateX(-5%)
368361
;
369362
}
370363

371-
100
372-
%
364+
100%
373365
{
374-
-webkit-transform: translateX (200%
375-
)
376-
;
377-
transform: translateX (200%
378-
)
379-
;
366+
-webkit-transform: translateX(200%);
367+
transform: translateX(200%);
380368
}
381369
}
382-
@
383-
keyframes disapear {
370+
@keyframes disapear {
384371

385-
50
386-
%
372+
50%
387373
{
388374
-webkit-transform: translateX(-5%)
389375
;
390376
transform: translateX(-5%)
391377
;
392378
}
393379

394-
100
395-
%
380+
100%
396381
{
397-
-webkit-transform: translateX (200%
398-
)
382+
-webkit-transform: translateX(200%)
399383
;
400-
transform: translateX (200%
401-
)
384+
transform: translateX(200%)
402385
;
403386
}
404387
}

src/main/resources/templates/kurentoroom.html

+21-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,27 @@
1717
<link rel="styleSheet" href="/css/rtc/floating_chat.css" type="text/css" media="screen">
1818
</head>
1919
<script>
20+
let isFlipped = true; // 초기 상태: 좌우 반전 켜기
21+
22+
function toggleFlip() {
23+
const videoElement = document.querySelector('#participants video');
24+
if (videoElement) {
25+
if (isFlipped) {
26+
videoElement.style.transform = 'scaleX(-1)';
27+
document.getElementById('flipBtn').value = 'flip Off'; // 버튼 상태: 버튼 상태 끄기
28+
} else {
29+
videoElement.style.transform = 'scaleX(1)';
30+
document.getElementById('flipBtn').value = 'flip'; // 버튼 상태: 좌우 반전 켜기
31+
}
32+
isFlipped = !isFlipped; // 버튼 상태 변경
33+
}
34+
}
2035
</script>
2136
<style>
37+
body {
38+
background-color: #2C2F33;
39+
color: #FFFFFF;
40+
}
2241
</style>
2342
<body>
2443
<div id="container">
@@ -37,6 +56,7 @@
3756
data-flag="true">
3857
<input type="button" class="btn btn-outline-success localAudioToggle" id="audioBtn" value="audio Off"
3958
data-flag="true">
59+
<input type="button" class="btn btn-outline-success flipVideoToggle" id="flipBtn" value="flip" data-flag="false" onclick="toggleFlip()">
4060
</div>
4161
</div>
4262
</div>
@@ -60,7 +80,7 @@ <h2 id="room-header"></h2>
6080
<div class="chat">
6181
<div class="header">
6282
<span class="title">
63-
Tell Me Your Story
83+
대화를 시작하세요
6484
</span>
6585
<button>
6686
<i class="fa fa-times" aria-hidden="true"></i>

src/main/resources/templates/roomlist.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ <h5 th:if="${user != null}">
538538
</p>
539539
<button class="btn btn-primary btn-sm" id="configRoom" data-bs-toggle="modal" data-bs-target="#confirmPwdModal" th:data-id="${room.roomId}">채팅방 설정</button>
540540
</div>
541-
</li>>
541+
</li>
542542
</ul>
543543
</script>
544544
<script th:inline="javascript">

src/main/resources/templates/rtcroom.html

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ <h1>모두의 마당</h1>
120120
</script>
121121
<script>
122122
document.addEventListener('DOMContentLoaded', function() {
123-
// ... 기존 코드 ...
124123

125124
// 좌우 반전 버튼 이벤트 리스너
126125
var flipButton = document.getElementById('flip_video');

0 commit comments

Comments
 (0)