ezuikit-js 7.7.0 → 7.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CHANGELOG.md +115 -101
  2. package/README.md +490 -474
  3. package/ezuikit.js +75442 -1
  4. package/ezuikit_static/v65/v1/css/theme.css +465 -0
  5. package/ezuikit_static/v65/v1/imgs/bg.png +0 -0
  6. package/ezuikit_static/v65/v1/imgs/bg.svg +33 -0
  7. package/ezuikit_static/v65/v1/imgs/end.png +0 -0
  8. package/ezuikit_static/v65/v1/imgs/start.png +0 -0
  9. package/ezuikit_static/v65/v1/js/jsPluginV1-1.0.0.min.js +4 -18
  10. package/ezuikit_static/v65/v3/css/theme.css +19 -0
  11. package/ezuikit_static/v65/v3/imgs/bg.png +0 -0
  12. package/ezuikit_static/v65/v3/imgs/end.png +0 -0
  13. package/ezuikit_static/v65/v3/imgs/start.png +0 -0
  14. package/ezuikit_static/v65/v3/js/jsPluginV3-1.0.0.min.js +466 -59
  15. package/package.json +6 -1
  16. package/demos/EZUIKitHD/EZUIKitHD.html +0 -171
  17. package/demos/EZUIKitHD/js/jsWebControl-1.0.0.min.js +0 -80
  18. package/demos/base-demo/base.html +0 -118
  19. package/demos/base-demo/ezuikit.js +0 -1
  20. package/demos/base-demo/ezuikit_static/v65/v1/css/theme.css +0 -121
  21. package/demos/base-demo/ezuikit_static/v65/v1/js/AudioRenderer.js +0 -225
  22. package/demos/base-demo/ezuikit_static/v65/v1/js/SuperRender_10.js +0 -397
  23. package/demos/base-demo/ezuikit_static/v65/v1/js/SystemTransform.js +0 -22
  24. package/demos/base-demo/ezuikit_static/v65/v1/js/SystemTransform.js.mem +0 -0
  25. package/demos/base-demo/ezuikit_static/v65/v1/js/jsPluginV1-1.0.0.min.js +0 -26
  26. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/AudioRenderer.js +0 -225
  27. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/DecodeWorker.js +0 -616
  28. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/DecodeWorkerString.js +0 -616
  29. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/Decoder.js +0 -1
  30. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/JSPlaySDKInterface.js +0 -2139
  31. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/SuperRender_10.js +0 -397
  32. package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/SuperRender_20.js +0 -1
  33. package/demos/base-demo/ezuikit_static/v65/v1/js/transform/SystemTransform.js +0 -22
  34. package/demos/base-demo/ezuikit_static/v65/v1/js/transform/SystemTransform.js.mem +0 -0
  35. package/demos/base-demo/ezuikit_static/v65/v1/js/transform/systemTransform-worker.min.js +0 -1
  36. package/demos/base-demo/ezuikit_static/v65/v1/js/tts-v4.js +0 -346
  37. package/demos/base-demo/ezuikit_static/v65/v1/rec/datepicker.js +0 -1522
  38. package/demos/base-demo/ezuikit_static/v65/v1/rec/datepicker.min.css +0 -36
  39. package/demos/base-demo/ezuikit_static/v65/v1/rec/datepicker.zh-CN.js +0 -19
  40. package/demos/base-demo/ezuikit_static/v65/v1/rec/jquery.min.js +0 -2
  41. package/demos/base-demo/ezuikit_static/v65/v1/speed/speed.css +0 -145
  42. package/demos/base-demo/ezuikit_static/v65/v1/talk/adapeter.js +0 -5497
  43. package/demos/base-demo/ezuikit_static/v65/v1/talk/janus.js +0 -3507
  44. package/demos/base-demo/ezuikit_static/v65/v1/talk/tts-v4.js +0 -346
  45. package/demos/base-demo/ezuikit_static/v65/v3/css/theme.css +0 -121
  46. package/demos/base-demo/ezuikit_static/v65/v3/js/PlayCtrlWasm/hasWorker/Decoder.js +0 -21
  47. package/demos/base-demo/ezuikit_static/v65/v3/js/PlayCtrlWasm/hasWorker/Decoder.wasm +0 -0
  48. package/demos/base-demo/ezuikit_static/v65/v3/js/PlayCtrlWasm/hasWorker/Decoder.worker.js +0 -1
  49. package/demos/base-demo/ezuikit_static/v65/v3/js/PlayCtrlWasm/noWorker/Decoder.js +0 -21
  50. package/demos/base-demo/ezuikit_static/v65/v3/js/PlayCtrlWasm/noWorker/Decoder.wasm +0 -0
  51. package/demos/base-demo/ezuikit_static/v65/v3/js/PlayCtrlWasm/noWorker/Decoder.worker.js +0 -1
  52. package/demos/base-demo/ezuikit_static/v65/v3/js/jsPluginV3-1.0.0.min.js +0 -16136
  53. package/demos/base-demo/ezuikit_static/v65/v3/js/wasmplayer.min.js +0 -1
  54. package/demos/base-demo/ezuikit_static/v65/v3/rec/datepicker.js +0 -1522
  55. package/demos/base-demo/ezuikit_static/v65/v3/rec/datepicker.min.css +0 -36
  56. package/demos/base-demo/ezuikit_static/v65/v3/rec/datepicker.zh-CN.js +0 -19
  57. package/demos/base-demo/ezuikit_static/v65/v3/rec/jquery.min.js +0 -2
  58. package/demos/base-demo/ezuikit_static/v65/v3/speed/speed.css +0 -145
  59. package/demos/base-demo/ezuikit_static/v65/v3/talk/adapeter.js +0 -5497
  60. package/demos/base-demo/ezuikit_static/v65/v3/talk/janus.js +0 -3507
  61. package/demos/base-demo/ezuikit_static/v65/v3/talk/tts-v4.js +0 -343
  62. package/demos/base-demo/hls.html +0 -24
  63. package/demos/base-demo/index.html +0 -117
  64. package/demos/base-demo/localDecoder.html +0 -118
  65. package/demos/base-demo/mobileLive.html +0 -117
  66. package/demos/base-demo/mobileRec.html +0 -116
  67. package/demos/base-demo/multi.html +0 -129
  68. package/demos/base-demo/pcLive.html +0 -117
  69. package/demos/base-demo/pcRec.html +0 -116
  70. package/demos/base-demo/template.html +0 -124
  71. package/demos/base-demo/themeData.html +0 -232
  72. package/demos/nginx-demo/conf/fastcgi.conf +0 -26
  73. package/demos/nginx-demo/conf/fastcgi_params +0 -25
  74. package/demos/nginx-demo/conf/koi-utf +0 -109
  75. package/demos/nginx-demo/conf/koi-win +0 -103
  76. package/demos/nginx-demo/conf/mime.types +0 -95
  77. package/demos/nginx-demo/conf/nginx.conf +0 -121
  78. package/demos/nginx-demo/conf/scgi_params +0 -17
  79. package/demos/nginx-demo/conf/uwsgi_params +0 -17
  80. package/demos/nginx-demo/conf/win-utf +0 -126
  81. package/demos/nginx-demo/contrib/README +0 -21
  82. package/demos/nginx-demo/contrib/geo2nginx.pl +0 -58
  83. package/demos/nginx-demo/contrib/unicode2nginx/koi-utf +0 -131
  84. package/demos/nginx-demo/contrib/unicode2nginx/unicode-to-nginx.pl +0 -48
  85. package/demos/nginx-demo/contrib/unicode2nginx/win-utf +0 -130
  86. package/demos/nginx-demo/contrib/vim/ftdetect/nginx.vim +0 -4
  87. package/demos/nginx-demo/contrib/vim/ftplugin/nginx.vim +0 -1
  88. package/demos/nginx-demo/contrib/vim/indent/nginx.vim +0 -11
  89. package/demos/nginx-demo/contrib/vim/syntax/nginx.vim +0 -2268
  90. package/demos/nginx-demo/docs/CHANGES +0 -8115
  91. package/demos/nginx-demo/docs/CHANGES.ru +0 -8252
  92. package/demos/nginx-demo/docs/LICENSE +0 -26
  93. package/demos/nginx-demo/docs/OpenSSL.LICENSE +0 -127
  94. package/demos/nginx-demo/docs/PCRE.LICENCE +0 -93
  95. package/demos/nginx-demo/docs/README +0 -3
  96. package/demos/nginx-demo/docs/zlib.LICENSE +0 -20
  97. package/demos/nginx-demo/html/50x.html +0 -21
  98. package/demos/nginx-demo/html/ezuikit5/ezuikit.js +0 -36107
  99. package/demos/nginx-demo/html/ezuikit5/index.html +0 -117
  100. package/demos/nginx-demo/html/ezuikit5/server.js +0 -67
  101. package/demos/nginx-demo/html/index.html +0 -16
  102. package/demos/nginx-demo/html/js/adapeter.js +0 -5497
  103. package/demos/nginx-demo/html/js/janus.js +0 -3507
  104. package/demos/nginx-demo/html/js/jquery.min.js +0 -2
  105. package/demos/nginx-demo/html/js/sts.js +0 -340
  106. package/demos/nginx-demo/logs/access.log +0 -109
  107. package/demos/nginx-demo/logs/error.log +0 -15
  108. package/demos/nginx-demo/logs/nginx.pid +0 -1
  109. package/demos/nginx-demo/nginx.exe +0 -0
  110. package/demos/react-demo/README.md +0 -68
  111. package/demos/react-demo/package.json +0 -36
  112. package/demos/react-demo/public/favicon.ico +0 -0
  113. package/demos/react-demo/public/index.html +0 -43
  114. package/demos/react-demo/public/logo192.png +0 -0
  115. package/demos/react-demo/public/logo512.png +0 -0
  116. package/demos/react-demo/public/manifest.json +0 -25
  117. package/demos/react-demo/public/robots.txt +0 -3
  118. package/demos/react-demo/src/App.css +0 -38
  119. package/demos/react-demo/src/App.js +0 -114
  120. package/demos/react-demo/src/App.test.js +0 -9
  121. package/demos/react-demo/src/index.css +0 -13
  122. package/demos/react-demo/src/index.js +0 -17
  123. package/demos/react-demo/src/logo.svg +0 -7
  124. package/demos/react-demo/src/serviceWorker.js +0 -141
  125. package/demos/react-demo/src/setupTests.js +0 -5
  126. package/demos/vue-demo/README.md +0 -24
  127. package/demos/vue-demo/babel.config.js +0 -5
  128. package/demos/vue-demo/package.json +0 -43
  129. package/demos/vue-demo/public/favicon.ico +0 -0
  130. package/demos/vue-demo/public/index.html +0 -17
  131. package/demos/vue-demo/src/App.vue +0 -27
  132. package/demos/vue-demo/src/assets/logo.png +0 -0
  133. package/demos/vue-demo/src/components/EZUIKitJs.vue +0 -115
  134. package/demos/vue-demo/src/main.js +0 -8
@@ -1,346 +0,0 @@
1
- // We make use of this 'server' variable to provide the address of the
2
- // REST Janus API. By default, in this example we assume that Janus is
3
- // co-located with the web server hosting the HTML pages but listening
4
- // on a different port (8088, the default for HTTP in Janus), which is
5
- // why we make use of the 'window.location.hostname' base address. Since
6
- // Janus can also do HTTPS, and considering we don't really want to make
7
- // use of HTTP for Janus if your demos are served on HTTPS, we also rely
8
- // on the 'window.location.protocol' prefix to build the variable, in
9
- // particular to also change the port used to contact Janus (8088 for
10
- // HTTP and 8089 for HTTPS, if enabled).
11
- // In case you place Janus behind an Apache frontend (as we did on the
12
- // online demos at http://janus.conf.meetecho.com) you can just use a
13
- // relative path for the variable, e.g.:
14
- //
15
- // var server = "/janus";
16
- //
17
- // which will take care of this on its own.
18
- //
19
- //
20
- // If you want to use the WebSockets frontend to Janus, instead, you'll
21
- // have to pass a different kind of address, e.g.:
22
- //
23
- // var server = "ws://" + window.location.hostname + ":8188";
24
- //
25
- // Of course this assumes that support for WebSockets has been built in
26
- // when compiling the server. WebSockets support has not been tested
27
- // as much as the REST API, so handle with care!
28
- //
29
- //
30
- // If you have multiple options available, and want to let the library
31
- // autodetect the best way to contact your server (or pool of servers),
32
- // you can also pass an array of servers, e.g., to provide alternative
33
- // means of access (e.g., try WebSockets first and, if that fails, fall
34
- // back to plain HTTP) or just have failover servers:
35
- //
36
- // var server = [
37
- // "ws://" + window.location.hostname + ":8188",
38
- // "/janus"
39
- // ];
40
- //
41
- // This will tell the library to try connecting to each of the servers
42
- // in the presented order. The first working server will be used for
43
- // the whole session.
44
- //
45
- var server = null;
46
- if(window.location.protocol === 'http:')
47
- //server = "http://" + window.location.hostname + ":9020/janus";
48
- // yujianbo
49
- server = "https://" + "10.80.21.211" + ":9022/janus";
50
- else
51
- //server = "https://" + window.location.hostname + ":9022/janus";
52
- // -yujianbo
53
- server = "https://" + "10.80.21.211" + ":9022/janus";
54
-
55
- var janus = null;
56
- var tts = null;
57
- var opaqueId = "tts-"+Janus.randomString(12);
58
-
59
- var spinner = null;
60
-
61
- // Initialize the library (all console debuggers enabled)
62
- Janus.init({debug: "all", callback: function() {
63
- window.stopTalk = function (){
64
- janus.destroy();
65
- }
66
- // debugger;
67
- window.startTalk = function() {
68
- // Make sure the browser supports WebRTC
69
- if(!Janus.isWebrtcSupported()) {
70
- bootbox.alert("No WebRTC support... ");
71
- return;
72
- }
73
-
74
- // if($('#tts_url').val().length == 0){
75
- // bootbox.alert("Please input tts url... ");
76
- // return;
77
- // }
78
-
79
- // $(this).attr('disabled', true).unbind('click');
80
-
81
- // Create session
82
- janus = new Janus(
83
- {
84
- server: window.EZUIKit.opt.rtcUrl,
85
- // No "iceServers" is provided, meaning janus.js will use a default STUN server
86
- // Here are some examples of how an iceServers field may look like to support TURN
87
- // iceServers: [{urls: "turn:yourturnserver.com:3478", username: "janususer", credential: "januspwd"}],
88
- // iceServers: [{urls: "turn:yourturnserver.com:443?transport=tcp", username: "janususer", credential: "januspwd"}],
89
- // iceServers: [{urls: "turns:yourturnserver.com:443?transport=tcp", username: "janususer", credential: "januspwd"}],
90
- // Should the Janus API require authentication, you can specify either the API secret or user token here too
91
- // token: "mytoken",
92
- // or
93
- // apisecret: "serversecret",
94
- success: function() {
95
- // Attach to tts plugin
96
- janus.attach(
97
- {
98
- plugin: "rtcgw.plugin.tts",
99
- opaqueId: opaqueId,
100
- success: function(pluginHandle) {
101
- // $('#details').remove();
102
- tts = pluginHandle;
103
- Janus.log("Plugin attached! (" + tts.getPlugin() + ", id=" + tts.getId() + ")");
104
- // Negotiate WebRTC
105
- //var url = "tts://61.130.6.23:8664/talk://D13781761:0:1:cas.ys7.com:6500?97fbd2a75fa94b7682c994d3d1fac8ca:ut.5porslgu79e9r7ca48z32k8abgl3rp58-77bhb6i7xr-1kmumtg-jkhy7pvfr:0:3"
106
-
107
-
108
- //var url = "tts://10.86.15.209:8664/talk://D13781761:0:1:cas.ys7.com:6500?32db2578ba7c4a84be22ecc0bcd0f8db:ut.5lqpkhim5m7cdk2y5w60g7hm9vd7i3v0-3d2pwhxe2t-11wx2ge-sh4yazbll:0:3"
109
- //var url = "tts://10.86.15.209:8664/talk://D13781761:0:1:cas.ys7.com:6500"
110
- //test12.ys.com
111
- //var url = "tts://10.86.15.209:8664/talk://D08197169:0:1:cas.ys7.com:6500"
112
- //test10.ys.com
113
- //var url = "tts://10.86.29.210:8664/talk://D08197169:0:1:cas.ys7.com:6500"
114
- var url = window.EZUIKit.opt.talkLink;
115
- console.log("ttsUlr",url);
116
- var body = { "request": "start", "url": url, "codec": "opus", "dir": "sendrecv", "audio_debug": 1};
117
- if(window.EZUIKit.opt.talkType === 'gb28181') {
118
- body['devProto'] = 'gb28181';
119
- }
120
- //tts.send({"message": body});
121
- Janus.debug("Trying a createOffer too (audio/video sendrecv)");
122
- tts.createOffer(
123
- {
124
- // No media provided: by default, it's sendrecv for audio and video
125
- media: { audio: true, video: false, data: false }, // Audio only
126
- // If you want to test simulcasting (Chrome and Firefox only), then
127
- // pass a ?simulcast=true when opening this demo page: it will turn
128
- // the following 'simulcast' property to pass to janus.js to true
129
- simulcast: false,
130
- simulcast2: false,
131
- success: function(jsep) {
132
- Janus.debug("Got SDP!");
133
- Janus.debug(jsep);
134
- tts.send({"message": body, "jsep": jsep});
135
- if(typeof window.EZUIKit.handleTalkSuccess !== 'undefined'){
136
- window.EZUIKit.handleTalkSuccess();
137
- }
138
- },
139
- error: function(error) {
140
- Janus.error("WebRTC error:", error);
141
- // bootbox.alert("WebRTC error... " + JSON.stringify(error));
142
- if(typeof window.EZUIKit.handleTalkError !== 'undefined'){
143
- window.EZUIKit.handleTalkError(error);
144
- }
145
- }
146
- });
147
- // $('#start').removeAttr('disabled').html("Stop")
148
- // .click(function() {
149
- // $(this).attr('disabled', true);
150
- // janus.destroy();
151
- // });
152
- },
153
- error: function(error) {
154
- console.error(" -- Error attaching plugin...", error);
155
- bootbox.alert("Error attaching plugin... " + error);
156
- if(window.EZUIKit.handleTalkError !== 'undefined'){
157
- window.EZUIKit.handleTalkError(error);
158
- }
159
- },
160
- consentDialog: function(on) {
161
- Janus.debug("Consent dialog should be " + (on ? "on" : "off") + " now");
162
- if(on) {
163
- // Darken screen and show hint
164
- // $.blockUI({
165
- // message: '<div><img src="up_arrow.png"/></div>',
166
- // css: {
167
- // border: 'none',
168
- // padding: '15px',
169
- // backgroundColor: 'transparent',
170
- // color: '#aaa',
171
- // top: '10px',
172
- // left: (navigator.mozGetUserMedia ? '-100px' : '300px')
173
- // } });
174
- } else {
175
- // Restore screen
176
- // $.unblockUI();
177
- }
178
- },
179
- iceState: function(state) {
180
- Janus.log("ICE state changed to " + state);
181
- },
182
- mediaState: function(medium, on) {
183
- Janus.log("Janus " + (on ? "started" : "stopped") + " receiving our " + medium);
184
- },
185
- webrtcState: function(on) {
186
- Janus.log("Janus says our WebRTC PeerConnection is " + (on ? "up" : "down") + " now");
187
- // $("#audioleft").parent().unblock();
188
- },
189
- slowLink: function(uplink, lost) {
190
- Janus.warn("Janus reports problems " + (uplink ? "sending" : "receiving") +
191
- " packets on this PeerConnection (" + lost + " lost packets)");
192
- },
193
- onmessage: function(msg, jsep) {
194
- Janus.debug(" ::: Got a message :::");
195
- Janus.debug(msg);
196
- if(jsep !== undefined && jsep !== null) {
197
- Janus.debug("Handling SDP as well...");
198
- Janus.debug(jsep);
199
- tts.handleRemoteJsep({jsep: jsep});
200
- }
201
- var result = msg["result"];
202
- if(result !== null && result !== undefined) {
203
- if(result === "done") {
204
- // The plugin closed
205
- bootbox.alert("The TTS Test is over");
206
- if(spinner !== null && spinner !== undefined)
207
- spinner.stop();
208
- spinner = null;
209
- // $('#myaudio').remove();
210
- //$('#waitingvideo').remove();
211
- // $('#peeraudio').remove();
212
- return;
213
- }
214
-
215
- if(result === "msg"){
216
- if(typeof window.EZUIKit.handleTalkMessage !== 'undefined'){
217
- window.EZUIKit.handleTalkMessage(msg);
218
- }
219
- }
220
- // Any loss?
221
- var status = result["status"];
222
- if(status === "slow_link") {
223
- //~ var bitrate = result["bitrate"];
224
- //~ toastr.warning("The bitrate has been cut to " + (bitrate/1000) + "kbps", "Packet loss?", {timeOut: 2000});
225
- toastr.warning("Janus apparently missed many packets we sent, maybe we should reduce the bitrate", "Packet loss?", {timeOut: 2000});
226
- }
227
- }
228
- },
229
- onlocalstream: function(stream) {
230
- Janus.debug(" ::: Got a local stream :::");
231
- Janus.debug(stream);
232
-
233
- // if($('#myaudio').length === 0) {
234
- // $('#audios').removeClass('hide').show();
235
- // $('#audioleft').append('<audio id="myaudio" autoplay controls muted>Your browser does not support audio tag</audio>');
236
- // }
237
- Janus.attachMediaStream(document.getElementById("myaudio"), stream);
238
- //$("#myaudio").get(0).muted = "muted";
239
- if(tts.webrtcStuff.pc.iceConnectionState !== "completed" &&
240
- tts.webrtcStuff.pc.iceConnectionState !== "connected") {
241
- // $("#audioleft").parent().block({
242
- // message: '<b>Publishing...</b>',
243
- // css: {
244
- // border: 'none',
245
- // backgroundColor: 'transparent',
246
- // color: 'white'
247
- // }
248
- // });
249
- // No remote video yet
250
- //$('#audioright').append('<video class="rounded centered" id="waitingvideo" width=320 height=240 />');
251
- if(spinner == null) {
252
- var target = document.getElementById('audioright');
253
- //spinner = new Spinner({top:100}).spin(target);
254
- } else {
255
- spinner.spin();
256
- }
257
- }
258
- var audioTracks = stream.getAudioTracks();
259
- if(audioTracks === null || audioTracks === undefined || audioTracks.length === 0) {
260
- // $('#myaudio').hide();
261
- } else {
262
- // $('#myaudio').removeClass('hide').show();
263
- // document.getElementById('myaudio').play();
264
- }
265
- },
266
- onremotestream: function(stream) {
267
- Janus.debug(" ::: Got a remote stream :::");
268
- Janus.debug(stream);
269
- // if($('#peeraudio').length === 0) {
270
- // $('#audios').removeClass('hide').show();
271
- // // $('#audioright').append('<audio id="peeraudio" autoplay controls>Your browser does not support audio tag</audio>');
272
- // // Show the video, hide the spinner and show the resolution when we get a playing event
273
- // var audio = $('<audio id="peeraudio" autoplay controls playsinline preload="preload" loop="true"></audio>');
274
- // audio = audio.get(0);
275
- // audio.setAttribute("id", 'peeraudio');
276
- // audio.setAttribute("preload","preload");
277
- // // 自动播放解决苹果不兼容autoplay属性
278
- // audio.setAttribute("loop",true);
279
- // $('#audioright').append(audio);
280
- // $("#peeraudio").bind("playing", function () {
281
- // //$('#waitingvideo').remove();
282
- // $('#peeraudio').removeClass('hide').show();
283
- // if(spinner !== null && spinner !== undefined)
284
- // spinner.stop();
285
- // spinner = null;
286
- // });
287
- // }
288
- Janus.attachMediaStream(document.getElementById("peeraudio"), stream);
289
- var audioTracks = stream.getAudioTracks();
290
- if(audioTracks === null || audioTracks === undefined || audioTracks.length === 0) {
291
- // $('#peeraudio').hide();
292
- } else {
293
- // $('#peeraudio').removeClass('hide').show();
294
- document.getElementById('peeraudio').play();
295
- }
296
- },
297
- ondataopen: function(data) {
298
- Janus.log("The DataChannel is available!");
299
- },
300
- ondata: function(data) {
301
- Janus.debug("We got data from the DataChannel! " + data);
302
- },
303
- oncleanup: function() {
304
- Janus.log(" ::: Got a cleanup notification :::");
305
- if(spinner !== null && spinner !== undefined)
306
- spinner.stop();
307
- spinner = null;
308
- // $('#myaudio').remove();
309
- // //$('#waitingvideo').remove();
310
- // $("#audioleft").parent().unblock();
311
- // $('#peeraudio').remove();
312
- }
313
- });
314
- },
315
- error: function(error) {
316
- Janus.error(error);
317
- if(window.EZUIKit.handleTalkError !== 'undefined'){
318
- window.EZUIKit.handleTalkError(error);
319
- }
320
- },
321
- destroyed: function() {
322
- // window.location.reload();
323
- }
324
- });
325
- }
326
-
327
- }});
328
-
329
- function checkEnter(event) {
330
- var theCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
331
- if(theCode == 13) {
332
- sendData();
333
- return false;
334
- } else {
335
- return true;
336
- }
337
- }
338
-
339
- // Helper to parse query string
340
- function getQueryStringValue(name) {
341
- name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
342
- var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
343
- results = regex.exec(location.search);
344
- return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
345
- }
346
-
@@ -1,121 +0,0 @@
1
- .footer-controls .theme-icon-item {
2
- margin: 0 1%;
3
- }
4
- .footer-controls.themeEditing .theme-icon-item {
5
- position: relative;
6
- /* margin: 0 8px; */
7
- }
8
- .footer-controls .footer-controls-left{
9
- margin-left: 12px;
10
- }
11
- .footer-controls.themeEditing .footer-controls-left .theme-icon-item {
12
- /* margin-left: 12px; */
13
- }
14
- .footer-controls.themeEditing .footer-controls-right .theme-icon-item {
15
- /* margin-right: 12px; */
16
- }
17
- .footer-controls .theme-icon-item .icon-move {
18
- display: none;
19
- }
20
- .footer-controls.themeEditing .theme-icon-item:hover .icon-move {
21
- display: block;
22
- }
23
- .footer-controls.themeEditing .footer-controls-left .theme-icon-item:first-child .icon-move.left{
24
- display: none;
25
- }
26
- .footer-controls.themeEditing .footer-controls-left .theme-icon-item:nth-last-child(1) .icon-move.right{
27
- display: none;
28
- }
29
- .footer-controls .footer-controls-right {
30
- margin-right: 12px;
31
- }
32
-
33
- .footer-controls.themeEditing .footer-controls-right .theme-icon-item:first-child .icon-move.left{
34
- display: none;
35
- }
36
- .footer-controls.themeEditing .footer-controls-right .theme-icon-item:nth-last-child(1) .icon-move.right{
37
- display: none;
38
- }
39
-
40
- .header-controls .theme-icon-item {
41
- margin: 0 1%;
42
- }
43
- .header-controls.themeEditing .theme-icon-item {
44
- position: relative;
45
- /* margin: 0 8px; */
46
- }
47
- .header-controls.themeEditing .header-controls-left {
48
- margin-left: 12px;
49
- }
50
- .header-controls.themeEditing .header-controls-right {
51
- margin-right: 12px;
52
- }
53
- .header-controls .theme-icon-item .icon-move {
54
- display: none;
55
- }
56
- .header-controls.themeEditing .theme-icon-item:hover .icon-move {
57
- display: block;
58
- }
59
- .header-controls.themeEditing .header-controls-left .theme-icon-item:first-child .icon-move.left{
60
- display: none;
61
- }
62
- .header-controls.themeEditing .header-controls-left .theme-icon-item:nth-last-child(1) .icon-move.right{
63
- display: none;
64
- }
65
-
66
- .header-controls.themeEditing .header-controls-right .theme-icon-item:first-child .icon-move.left{
67
- display: none;
68
- }
69
- .header-controls.themeEditing .header-controls-right .theme-icon-item:nth-last-child(1) .icon-move.right{
70
- display: none;
71
- }
72
-
73
-
74
- .time-area {
75
- position: absolute;
76
- color: #FFFFFF;
77
- width: 68px;
78
- height: 24px;
79
- line-height: 24px;
80
- background: #00000050;
81
- border-radius: 12px;
82
- display: none;
83
- align-content: center;
84
- left: calc(50% - 34px);
85
- top: -30px;
86
- align-items: center;
87
- justify-content: space-around;
88
- padding-left: 4px;
89
- z-index: 9999999;
90
-
91
- }
92
- .time-area .dot {
93
- display: inline-block;
94
- width: 8px;
95
- height: 8px;
96
- background: red;
97
- border-radius: 100%;
98
- margin: 0 4px 1px 4px;
99
- }
100
-
101
-
102
- /* .footer-controls.themeEditing .theme-icon-item {
103
- position: relative;
104
- margin: 0 8px;
105
- }
106
- .footer-controls.themeEditing .footer-controls-left .theme-icon-item:nth-child(1) .ezuikit-theme-icon >span:first-child{
107
- display: none!important;
108
- }
109
- .footer-controls.themeEditing .footer-controls-left .theme-icon-item:nth-last-child(2) .ezuikit-theme-icon >span:nth-child(3){
110
- display: none!important;
111
- }
112
-
113
- .footer-controls.themeEditing .theme-icon-item:hover .ezuikit-theme-icon {
114
- display: block!important;
115
- }
116
- .footer-controls.themeEditing .footer-controls-right .theme-icon-item:nth-child(1) .ezuikit-theme-icon >span:first-child{
117
- display: none!important;
118
- }
119
- .footer-controls.themeEditing .footer-controls-right .theme-icon-item:nth-last-child(1) .ezuikit-theme-icon >span:nth-child(3){
120
- display: none!important;
121
- } */