This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +10
-20
lines changed
Expand file tree Collapse file tree 6 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 3838 </ div >
3939 < script src ="https://code.jquery.com/jquery-3.2.1.min.js "> </ script >
4040 < script src ="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js " type ="text/javascript "> </ script >
41- < script src ="https://webrtchacks.github.io/adapter/adapter-7.0.0.js " type ="text/javascript "> </ script >
4241 < script src ="../../../../dist/sdk-debug/owt.js " type ="text/javascript "> </ script >
4342 < script src ="scripts/index.js " type ="text/javascript "> </ script >
4443 < script src ="scripts/rest-sample.js " type ="text/javascript "> </ script >
4544 < script language ="JavaScript ">
46- function getParameterByName ( name ) {
47- name = name . replace ( / [ \[ ] / , '\\\[' ) . replace ( / [ \] ] / , '\\\]' ) ;
48- var regex = new RegExp ( '[\\?&]' + name + '=([^&#]*)' ) ,
49- results = regex . exec ( location . search ) ;
50- return results === null ? '' : decodeURIComponent ( results [ 1 ] . replace (
51- / \+ / g , ' ' ) ) ;
52- }
45+ // Load adapter.js on Edge.
46+ if ( window . navigator . userAgent . indexOf ( "Edge" ) > - 1 ) {
47+ const script = document . createElement ( "script" ) ;
48+ script . src = 'https://webrtchacks.github.io/adapter/adapter-7.0.0.js' ;
49+ document . head . appendChild ( script ) ;
50+ script . onload = runSocketIOSample ;
51+ } else {
5352 runSocketIOSample ( ) ;
53+ }
5454 </ script >
5555 </ body >
5656
Original file line number Diff line number Diff line change 5151< body >
5252 < script src ="https://code.jquery.com/jquery-1.10.2.min.js " type ="text/javascript "> </ script >
5353 < script src ="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js " type ="text/javascript "> </ script >
54- < script src ="https://webrtchacks.github.io/adapter/adapter-7.0.0.js " type ="text/javascript "> </ script >
5554 < script src ="js/sc.websocket.js " type ="text/javascript "> </ script >
5655 <!-- SDK Starts -->
5756 < script src ="../../../dist/sdk-debug/owt.js " type ="text/javascript "> </ script >
@@ -109,7 +108,7 @@ <h2>ScreenView</h2>
109108 < script type ="text/javascript ">
110109 'use strict' ;
111110 var isVideo = 1 ;
112- var serverAddress = 'http ://example.com' ; // Please change example.com to signaling server's address.
111+ var serverAddress = 'https ://example.com:8096 ' ; // Please change example.com to signaling server's address.
113112 const signaling = new SignalingChannel ( ) ;
114113 let publicationForCamera ;
115114 let publicationForScreen ;
@@ -147,11 +146,6 @@ <h2>ScreenView</h2>
147146 source :'screen-cast'
148147 } ,
149148 video :{
150- resolution :{
151- "width" : 640 ,
152- "height" :480
153- } ,
154- frameRate :20 ,
155149 source :'screen-cast'
156150 }
157151 }
Original file line number Diff line number Diff line change 99
1010URLS = {'q.js' : 'https://raw.githubusercontent.com/kriskowal/q/c2f5a6f35456389a806acca50bfd929cbe30c4cb/q.js' ,
1111 'jquery.min.js' : 'https://code.jquery.com/jquery-1.10.2.min.js' ,
12- 'socket.io.min.js' : 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js' ,
13- 'adapter.js' : 'https://webrtc.github.io/adapter/adapter-7.0.0.js'
12+ 'socket.io.min.js' : 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js'
1413 }
1514
1615DEPS_PATH = os .path .abspath (os .path .join (os .path .dirname (__file__ ), 'dependencies' ))
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ module.exports = function (config) {
77 files : [
88 './test/p2ptest/dependencies/jquery.min.js' ,
99 './test/p2ptest/dependencies/socket.io.min.js' ,
10- './test/p2ptest/dependencies/adapter.js' ,
1110 './test/p2ptest/dependencies/q.js' ,
1211 './dist/samples/p2p/js/sc.websocket.js' ,
1312 './dist/sdk/owt.js' ,
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ module.exports = function (config) {
77 files : [
88 './test/p2ptest/dependencies/jquery.min.js' ,
99 './test/p2ptest/dependencies/socket.io.min.js' ,
10- './test/p2ptest/dependencies/adapter.js' ,
1110 './test/p2ptest/dependencies/q.js' ,
1211 './dist/samples/p2p/js/sc.websocket.js' ,
1312 './dist/sdk/owt.js' ,
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ module.exports = function (config) {
77 files : [
88 './test/p2ptest/dependencies/jquery.min.js' ,
99 './test/p2ptest/dependencies/socket.io.min.js' ,
10- './test/p2ptest/dependencies/adapter.js' ,
1110 './test/p2ptest/dependencies/q.js' ,
1211 './dist/samples/p2p/js/sc.websocket.js' ,
1312 './dist/sdk/owt.js' ,
You can’t perform that action at this time.
0 commit comments