File tree Expand file tree Collapse file tree 2 files changed +28
-15
lines changed
packages/webrtc-sdk/examples Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 3131 },
3232 {
3333 "from" : " ./packages/webrtc-sdk/dist/**/*" ,
34- "to" : " ./src/main/webapp/js/"
34+ "to" : " ./src/main/webapp/v2/ js/"
3535 },
3636 {
3737 "from" : " ./packages/webrtc-sdk/examples/*" ,
38- "to" : " ./src/main/webapp/"
38+ "to" : " ./src/main/webapp/v2/"
39+ },
40+ {
41+ "from" : " ./src/main/webapp/js/external/**/*" ,
42+ "to" : " ./src/main/webapp/v2/js/external/"
43+ },
44+ {
45+ "from" : " ./src/main/webapp/js/external/**/*" ,
46+ "to" : " ./src/main/webapp/v2/js/external/"
47+ },
48+ {
49+ "from" : " ./src/main/webapp/js/fetch.stream.js" ,
50+ "to" : " ./src/main/webapp/v2/js/"
51+ },
52+ {
53+ "from" : " ./src/main/webapp/js/utility.js" ,
54+ "to" : " ./src/main/webapp/v2/js/"
55+ },
56+ {
57+ "from" : " ./src/main/webapp/js/external/**/*" ,
58+ "to" : " ./src/main/webapp/v2/js/external/"
59+ },
60+ {
61+ "from" : " ./src/main/webapp/css/**/*" ,
62+ "to" : " ./src/main/webapp/v2/css/"
3963 }
4064 ],
4165 "copyFilesSettings" : {
Original file line number Diff line number Diff line change @@ -231,20 +231,9 @@ <h3 class="col text-muted">
231231
232232 function log ( msg ) { logEl . textContent += msg + '\n' ; }
233233
234- var appName = location . pathname . substring ( 0 , location . pathname . lastIndexOf ( "/" ) + 1 ) ;
235- var path = location . hostname + ":" + location . port + appName + "websocket" ;
236- var websocketURL = "ws://" + path ;
234+ const websocketURL = getWebSocketURL ( window . location ) ;
237235
238- if ( location . protocol . startsWith ( "https" ) ) {
239- websocketURL = "wss://" + path ;
240- }
241-
242- if ( signaling ) {
243- //add signaling suffix to the websocket URL
244- websocketURL += "/signaling" ;
245- }
246-
247- const adaptor = new WebRTCClient ( {
236+ const adaptor = new WebRTCClient ( {
248237 websocketURL,
249238 remoteVideo : remote ,
250239 isPlayMode : true ,
You can’t perform that action at this time.
0 commit comments