Skip to content

Commit 58bcd64

Browse files
committed
handle all new packages in v2
1 parent 05bb92a commit 58bcd64

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

package.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,35 @@
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": {

packages/webrtc-sdk/examples/play-v2.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)