Permalink
Browse files

Canvas-Designer, Chrome-Extensions, ConcatenateBlobs, Conversation.js…

…, DataChannel.js, DetectRTC, Ffmpeg-asm.js demos, FileBufferReader demos, getStats.js, meeting.js demo, MultiRTC, part-fo-screen demo, Record-Entire-Meeting, RecordRTC, RTCMultiConnection v2.2.2 and v3, socket.io demo and screen.js updated.
  • Loading branch information...
1 parent 26c3db7 commit 17d7f530cde5319b210f42a79b9bbeb665916980 @muaz-khan committed Mar 18, 2016
Showing with 23,125 additions and 12,159 deletions.
  1. +5 −3 Canvas-Designer/Gruntfile.js
  2. +3 −3 Canvas-Designer/README.md
  3. +3 −2 Canvas-Designer/canvas-designer-widget.js
  4. +0 −33 Canvas-Designer/dev/arc-handler.js
  5. +0 −22 Canvas-Designer/dev/bezier-handler.js
  6. +26 −88 Canvas-Designer/dev/common.js
  7. +21 −57 Canvas-Designer/dev/decorator.js
  8. +0 −46 Canvas-Designer/dev/drag-helper.js
  9. +0 −34 Canvas-Designer/dev/draw-helper.js
  10. +0 −21 Canvas-Designer/dev/eraser-handler.js
  11. +58 −24 Canvas-Designer/dev/events-handler.js
  12. +0 −17 Canvas-Designer/dev/image-handler.js
  13. +0 −18 Canvas-Designer/dev/line-handler.js
  14. +0 −19 Canvas-Designer/dev/pencil-handler.js
  15. +0 −22 Canvas-Designer/dev/quadratic-handler.js
  16. +0 −17 Canvas-Designer/dev/rect-handler.js
  17. +0 −2 Canvas-Designer/dev/share-drawings.js
  18. +41 −66 Canvas-Designer/dev/text-handler.js
  19. +1 −1 Canvas-Designer/package.json
  20. +24 −31 Canvas-Designer/widget.html
  21. +238 −462 Canvas-Designer/widget.js
  22. +3 −3 Canvas-Designer/widget.min.js
  23. +10 −17 Chrome-Extensions/README.md
  24. +279 −0 Chrome-Extensions/desktopCapture-p2p/CodecsHandler.js
  25. +13 −0 Chrome-Extensions/desktopCapture-p2p/README.md
  26. +6 −4 Chrome-Extensions/desktopCapture-p2p/RTCMultiConnection.min.js
  27. +157 −92 Chrome-Extensions/desktopCapture-p2p/desktop-capturing.js
  28. +4 −4 Chrome-Extensions/desktopCapture-p2p/manifest.json
  29. +7 −1 Chrome-Extensions/desktopCapture-p2p/options.html
  30. +18 −0 Chrome-Extensions/desktopCapture-p2p/options.js
  31. +38 −70 Chrome-Extensions/desktopCapture-p2p/viewer.html
  32. +37 −0 Chrome-Extensions/desktopCapture/different-api/background-script.js
  33. BIN Chrome-Extensions/desktopCapture/different-api/icon.png
  34. +25 −0 Chrome-Extensions/desktopCapture/different-api/manifest.json
  35. +10 −0 Chrome-Extensions/file-sharing/README.md
  36. +0 −5 Chrome-Extensions/file-sharing/RTCMultiConnection.min.js
  37. +424 −204 Chrome-Extensions/file-sharing/file-sharing.html
  38. +124 −41 Chrome-Extensions/file-sharing/file-sharing.js
  39. +2 −0 Chrome-Extensions/file-sharing/getExternalIceServers.js
  40. BIN Chrome-Extensions/file-sharing/images/unknown.png
  41. +3 −3 Chrome-Extensions/file-sharing/manifest.json
  42. +1 −1 Chrome-Extensions/file-sharing/options.html
  43. +3 −0 Chrome-Extensions/file-sharing/rmc3.fbr.min.js
  44. +6 −0 Chrome-Extensions/file-sharing/rmc3.min.js
  45. +2 −3,154 Chrome-Extensions/file-sharing/socket.io.js
  46. +11 −3 ConcatenateBlobs/ConcatenateBlobs.js
  47. +7 −1 ConcatenateBlobs/README.md
  48. +1 −1 ConcatenateBlobs/package.json
  49. +0 −3 Conversation.js/AndroidRTC/index.html
  50. +23 −22 Conversation.js/AndroidRTC/scripts/common-signaling.js
  51. +0 −2 Conversation.js/AndroidRTC/scripts/socket.io.js
  52. +23 −22 Conversation.js/demos/common-signaling.js
  53. +2 −2 Conversation.js/demos/cross-language-chat.html
  54. +2 −2 Conversation.js/demos/search-user.html
  55. +0 −307 Conversation.js/old/README.md
  56. +0 −278 Conversation.js/old/demos/all-in-one.html
  57. +0 −84 Conversation.js/old/demos/one-to-many.html
  58. +0 −85 Conversation.js/old/demos/one-to-one.html
  59. +0 −646 Conversation.js/old/latest.js
  60. +10 −4 DataChannel/DataChannel.js
  61. +1 −1 DataChannel/DataChannel.min.js
  62. +5 −1 DataChannel/index.html
  63. +74 −0 DataChannel/server.js
  64. +2 −2 DetectRTC/DetectRTC.js
  65. +2 −2 DetectRTC/DetectRTC.min.js
  66. +4 −2 DetectRTC/Gruntfile.js
  67. +1 −1 DetectRTC/dev/DetectRTC.js
  68. +5 −0 FileBufferReader/.gitignore
  69. +6 −0 FileBufferReader/.npmignore
  70. +1 −1 FileBufferReader/demo/PeerConnection.js
  71. +2 −2 FileBufferReader/demo/PeerUI.js
  72. +77 −0 MultiRTC/MultiRTC-firebase/README.md
  73. +77 −0 MultiRTC/MultiRTC-socketio/README.md
  74. +77 −0 MultiRTC/MultiRTC-websocket/README.md
  75. +1 −1 MultiRTC/MultiRTC-websocket/package.json
  76. +1 −1 MultiRTC/MultiRTC-websocket/ui.peer-connection.js
  77. +2 −0 RTCMultiConnection/.gitignore
  78. +2 −0 RTCMultiConnection/.npmignore
  79. +49 −0 RTCMultiConnection/CONTRIBUTING.md
  80. +26 −8 RTCMultiConnection/Gruntfile.js
  81. +23 −0 RTCMultiConnection/LICENSE.md
  82. +638 −32 RTCMultiConnection/README.md
  83. +2,720 −1,948 RTCMultiConnection/RTCMultiConnection.js
  84. +5 −5 RTCMultiConnection/RTCMultiConnection.min.js
  85. +178 −52 RTCMultiConnection/Scalable-Broadcast.js
  86. +77 −25 RTCMultiConnection/Signaling-Server.js
  87. +26 −4 RTCMultiConnection/demos/Audio+ScreenSharing.html
  88. +83 −5 RTCMultiConnection/demos/Audio+Video+TextChat+FileSharing.html
  89. +26 −4 RTCMultiConnection/demos/Audio-Conferencing.html
  90. +29 −6 RTCMultiConnection/demos/Disconnect+Rejoin.html
  91. +23 −11 RTCMultiConnection/demos/Files-Scalable-Broadcast.html
  92. +23 −5 RTCMultiConnection/demos/Firebase-Demo.html
  93. BIN RTCMultiConnection/demos/MultiRTC/images/accepted.png
  94. BIN RTCMultiConnection/demos/MultiRTC/images/action-needed.png
  95. BIN RTCMultiConnection/demos/MultiRTC/images/cancel.png
  96. BIN RTCMultiConnection/demos/MultiRTC/images/chat-message.png
  97. BIN RTCMultiConnection/demos/MultiRTC/images/delete.png
  98. BIN RTCMultiConnection/demos/MultiRTC/images/help.png
  99. BIN RTCMultiConnection/demos/MultiRTC/images/info.png
  100. BIN RTCMultiConnection/demos/MultiRTC/images/loader.gif
  101. BIN RTCMultiConnection/demos/MultiRTC/images/logo.png
  102. BIN RTCMultiConnection/demos/MultiRTC/images/microphone.png
  103. BIN RTCMultiConnection/demos/MultiRTC/images/screen.png
  104. BIN RTCMultiConnection/demos/MultiRTC/images/scrollbar_arrow_down.gif
  105. BIN RTCMultiConnection/demos/MultiRTC/images/scrollbar_arrow_left.gif
  106. BIN RTCMultiConnection/demos/MultiRTC/images/scrollbar_arrow_right.gif
  107. BIN RTCMultiConnection/demos/MultiRTC/images/scrollbar_arrow_up.gif
  108. BIN RTCMultiConnection/demos/MultiRTC/images/settings.png
  109. BIN RTCMultiConnection/demos/MultiRTC/images/share-files.png
  110. BIN RTCMultiConnection/demos/MultiRTC/images/user.png
  111. BIN RTCMultiConnection/demos/MultiRTC/images/users.png
  112. BIN RTCMultiConnection/demos/MultiRTC/images/webcam.png
  113. +279 −0 RTCMultiConnection/demos/MultiRTC/index.html
  114. +156 −0 RTCMultiConnection/demos/MultiRTC/linkify.js
  115. +82 −0 RTCMultiConnection/demos/MultiRTC/scrol-bars.css
  116. +345 −0 RTCMultiConnection/demos/MultiRTC/style.css
  117. +255 −0 RTCMultiConnection/demos/MultiRTC/ui.main.js
  118. +268 −0 RTCMultiConnection/demos/MultiRTC/ui.peer-connection.js
  119. +76 −0 RTCMultiConnection/demos/MultiRTC/ui.settings.js
  120. +56 −0 RTCMultiConnection/demos/MultiRTC/ui.share-files.js
  121. +20 −0 RTCMultiConnection/demos/MultiRTC/ui.users-list.js
  122. +40 −5 RTCMultiConnection/demos/Password-Protected-Rooms.html
  123. +23 −5 RTCMultiConnection/demos/PubNub-Demo.html
  124. +34 −0 RTCMultiConnection/demos/README.md
  125. +426 −0 RTCMultiConnection/demos/Scalable-Broadcast.html
  126. +23 −3 RTCMultiConnection/demos/TextChat+FileSharing.html
  127. +52 −6 RTCMultiConnection/demos/Video-Conferencing.html
  128. +10 −10 RTCMultiConnection/demos/Video-Scalable-Broadcast.html
  129. +290 −0 RTCMultiConnection/demos/addStream-in-Chat-room.html
  130. +25 −6 RTCMultiConnection/demos/applyConstraints.html
  131. +26 −4 RTCMultiConnection/demos/checkPresence.html
  132. +26 −4 RTCMultiConnection/demos/custom-socket-event.html
  133. +604 −295 RTCMultiConnection/demos/file-sharing.html
  134. +26 −4 RTCMultiConnection/demos/getPublicModerators.html
  135. +34 −25 RTCMultiConnection/demos/index.html
  136. +36 −7 RTCMultiConnection/demos/replaceTrack.html
  137. +26 −4 RTCMultiConnection/demos/screen-sharing.html
  138. +210 −0 RTCMultiConnection/demos/share-part-of-screen.html
  139. +20 −2 RTCMultiConnection/demos/switch-cameras.html
  140. +26 −4 RTCMultiConnection/demos/video-broadcasting.html
  141. +21 −0 RTCMultiConnection/dev/BandwidthHandler.js
  142. +279 −0 RTCMultiConnection/dev/CodecsHandler.js
  143. +18 −10 RTCMultiConnection/dev/DetectRTC.js
  144. +6 −12 RTCMultiConnection/dev/FileBufferReader.js
  145. +49 −34 RTCMultiConnection/dev/IceServersHandler.js
  146. +90 −58 RTCMultiConnection/dev/MultiPeersHandler.js
  147. +59 −25 RTCMultiConnection/dev/Plugin.EveryWhere.js
  148. +7 −0 RTCMultiConnection/dev/README.md
  149. +506 −201 RTCMultiConnection/dev/RTCMultiConnection.js
  150. +92 −92 RTCMultiConnection/dev/RTCPeerConnection.js
  151. +9 −8 RTCMultiConnection/dev/Screen-Capturing.js
  152. +29 −18 RTCMultiConnection/dev/SocketConnection.js
  153. +5 −3 RTCMultiConnection/dev/StreamsHandler.js
  154. +18 −6 RTCMultiConnection/dev/getScreenId.js
  155. +32 −18 RTCMultiConnection/dev/getUserMedia.js
  156. +95 −21 RTCMultiConnection/dev/globals.js
  157. +367 −0 RTCMultiConnection/dev/gumadapter.js
  158. +20 −0 RTCMultiConnection/dev/ios-hacks.js
  159. +30 −0 RTCMultiConnection/dist/README.md
  160. +78 −28 Chrome-Extensions/file-sharing/FileBufferReader.js → RTCMultiConnection/dist/rmc3.fbr.js
  161. +3 −0 RTCMultiConnection/dist/rmc3.fbr.min.js
  162. +5,486 −0 RTCMultiConnection/dist/rmc3.js
  163. +6 −0 RTCMultiConnection/dist/rmc3.min.js
  164. +13 −11 RTCMultiConnection/package.json
  165. +8 −1 RTCMultiConnection/server.js
  166. +51 −11 RTCMultiConnection/v2.2.2/RTCMultiConnection.js
  167. +4 −4 RTCMultiConnection/v2.2.2/RTCMultiConnection.min.js
  168. +50 −25 RTCMultiConnection/v2.2.2/demos/RecordRTC-and-RTCMultiConnection.html
  169. +77 −19 RTCMultiConnection/v2.2.2/demos/all-in-one.html
  170. +18 −10 RTCMultiConnection/v2.2.2/demos/remote-stream-forwarding.html
  171. +19 −2 RTCMultiConnection/v2.2.2/dev/RTCMultiConnection.js
  172. +31 −8 RTCMultiConnection/v2.2.2/dev/setDefaults.js
  173. +54 −155 Record-Entire-Meeting/Browser-Recording-Helper.js
  174. +38 −185 Record-Entire-Meeting/Concatenate-Recordings.js
  175. +31 −1,318 Record-Entire-Meeting/MediaStreamRecorder.js
  176. +0 −96 Record-Entire-Meeting/Merge-Recordings.js
  177. +29 −93 Record-Entire-Meeting/Nodejs-Recording-Handler.js
  178. +17 −21 Record-Entire-Meeting/README.md
  179. +0 −65 Record-Entire-Meeting/Scale-Recordings.js
  180. +11 −59 Record-Entire-Meeting/Write-Recordings-To-Disk.js
  181. +0 −2 Record-Entire-Meeting/bat-files/concatenate.bat
  182. +0 −2 Record-Entire-Meeting/bat-files/merger.bat
  183. +0 −2 Record-Entire-Meeting/bat-files/scale.bat
  184. +76 −12 Record-Entire-Meeting/index.html
  185. +4 −3 Record-Entire-Meeting/package.json
  186. +17 −3 Record-Entire-Meeting/server.js
  187. +1 −1 RecordRTC/AudioVideo-on-Firefox.html
  188. +41 −4 RecordRTC/Canvas-Recording/README.md
  189. BIN RecordRTC/Canvas-Recording/WebRTC.png
  190. +2,869 −0 RecordRTC/Canvas-Recording/canvas-designer.js
  191. +64 −21 RecordRTC/Canvas-Recording/index.html
  192. +629 −0 RecordRTC/Canvas-Recording/record-canvas-drawings.html
  193. +8 −26 RecordRTC/Gruntfile.js
  194. +48 −17 RecordRTC/MRecordRTC/README.md
  195. +70 −20 RecordRTC/MRecordRTC/index.html
  196. +1 −1 RecordRTC/PHP-and-FFmpeg/save.php
  197. +68 −69 RecordRTC/README.md
  198. +1 −1 RecordRTC/RecordRTC-to-PHP/index.html
  199. +368 −219 RecordRTC/RecordRTC.js
  200. +6 −2 RecordRTC/RecordRTC.min.js
  201. +1 −1 RecordRTC/bower.json
  202. +118 −52 RecordRTC/dev/CanvasRecorder.js
  203. +50 −12 RecordRTC/dev/Cross-Browser-Declarations.js
  204. +5 −4 RecordRTC/dev/GetRecorderType.js
  205. +87 −16 RecordRTC/dev/MRecordRTC.js
  206. +50 −57 RecordRTC/dev/MediaStreamRecorder.js
  207. +2 −2 RecordRTC/dev/RecordRTC-Configuration.js
  208. +10 −8 RecordRTC/dev/RecordRTC.js
  209. +2 −1 RecordRTC/dev/StereoAudioRecorder.js
  210. +0 −8 RecordRTC/dev/Whammy.js
  211. +2 −62 RecordRTC/dev/head.js
  212. +42 −0 RecordRTC/dev/isMediaRecorderCompatible.js
  213. +49 −20 RecordRTC/index.html
  214. +9 −11 RecordRTC/package.json
  215. +7 −0 demos/remote-stream-recording.html
  216. +43 −35 docs/WebRTC-PeerConnection.html
  217. +7 −7 docs/how-to-WebRTC-video-conferencing.html
  218. +71 −146 experimental/mozCaptureStreamUntilEnded/index.html
  219. +1 −0 ffmpeg/README.md
  220. +445 −0 ffmpeg/audio-plus-screen-recording.html
  221. +10 −1 ffmpeg/merging-wav-and-webm-into-mp4.html
  222. +10 −1 ffmpeg/wav-to-ogg.html
  223. +11 −2 ffmpeg/webm-to-mp4.html
  224. +1 −1 getScreenId.js/README.md
  225. +95 −58 getStats/README.md
  226. +102 −44 getStats/getStats.js
  227. +353 −0 getStats/index.html
  228. +3 −3 getStats/package.json
  229. +74 −0 getStats/server.js
  230. +1 −1 meeting/index.html
  231. +1 −27 part-of-screen-sharing/webrtc-data-channel/index.html
  232. +1 −1 screen-sharing/screen.js
  233. +4 −4 socket.io/index.html
@@ -7,6 +7,8 @@ module.exports = function(grunt) {
scope: 'devDependencies'
});
+ var banner = '// Last time updated: <%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %>\n\n';
+
// configure project
grunt.initConfig({
// make node configurations available
@@ -15,7 +17,7 @@ module.exports = function(grunt) {
options: {
stripBanners: true,
separator: '\n',
- banner: '// Last time updated at <%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss TT") %> \n\n'
+ banner: banner
},
dist: {
src: [
@@ -32,7 +34,7 @@ module.exports = function(grunt) {
'dev/line-handler.js',
'dev/rect-handler.js',
'dev/quadratic-handler.js',
- 'bezier-handler.js',
+ 'dev/bezier-handler.js',
'dev/file-selector.js',
'dev/image-handler.js',
'dev/events-handler.js',
@@ -48,7 +50,7 @@ module.exports = function(grunt) {
uglify: {
options: {
mangle: false,
- banner: '// Last time updated at <%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss TT") %> \n\n'
+ banner: banner
},
my_target: {
files: {
@@ -70,14 +70,14 @@ E.g. (Please don't forget replacing `1.0.0` with latest version)
```html
<!-- 1st step -->
-<script src="https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.0/canvas-designer-widget.js"></script>
+<script src="https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.2/canvas-designer-widget.js"></script>
<!-- 2nd step -->
<script>
// both links are mandatory
// widget.html will internally use widget.js
-CanvasDesigner.widgetHtmlURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.0/widget.html'; // you can place this file anywhere
-CanvasDesigner.widgetJsURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.0/widget.js'; // you can place this file anywhere
+CanvasDesigner.widgetHtmlURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.2/widget.html'; // you can place this file anywhere
+CanvasDesigner.widgetJsURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.2/widget.js'; // you can place this file anywhere
</script>
<!-- 3rd i.e. last step -->
@@ -39,8 +39,6 @@ var CanvasDesigner = (function() {
}
}
- window.addEventListener('message', onMessage, false);
-
return {
appendTo: function(parentNode) {
iframe = document.createElement('iframe');
@@ -49,6 +47,9 @@ var CanvasDesigner = (function() {
iframe.style.height = '100%';
iframe.style.border = 0;
parentNode.appendChild(iframe);
+
+ window.removeEventListener('message', onMessage);
+ window.addEventListener('message', onMessage, false);
},
destroy: function() {
if(iframe) {
@@ -1,9 +1,4 @@
-// -------------------------------------------------------------
-
var arcHandler = {
-
- // -------------------------------------------------------------
-
global: {
ismousedown: false,
prevX: 0,
@@ -15,9 +10,6 @@ var arcHandler = {
arcRangeContainer: null,
arcRange: null
},
-
- // -------------------------------------------------------------
-
mousedown: function(e) {
var g = this.global;
@@ -29,9 +21,6 @@ var arcHandler = {
g.ismousedown = true;
},
-
- // -------------------------------------------------------------
-
mouseup: function(e) {
var g = this.global;
@@ -75,9 +64,6 @@ var arcHandler = {
this.fixAllPoints();
},
-
- // -------------------------------------------------------------
-
mousemove: function(e) {
var g = this.global;
@@ -100,9 +86,6 @@ var arcHandler = {
}
}
},
-
- // -------------------------------------------------------------
-
fixAllPoints: function() {
var toFixed = this.toFixed;
@@ -117,9 +100,6 @@ var arcHandler = {
}
}
},
-
- // -------------------------------------------------------------
-
init: function() {
var markIsClockwise = find('is-clockwise'),
g = this.global;
@@ -148,9 +128,6 @@ var arcHandler = {
addEvent(arcRange, 'keydown', this.arcRangeHandler);
addEvent(arcRange, 'focus', this.arcRangeHandler);
},
-
- // -------------------------------------------------------------
-
arcRangeHandler: function(e) {
var g = arcHandler.global,
arcRange = g.arcRange;
@@ -174,15 +151,9 @@ var arcHandler = {
}
}
},
-
- // -------------------------------------------------------------
-
toFixed: function(input) {
return Number(input).toFixed(1);
},
-
- // -------------------------------------------------------------
-
end: function() {
var g = this.global;
@@ -194,10 +165,6 @@ var arcHandler = {
drawHelper.redraw();
}
-
- // -------------------------------------------------------------
};
arcHandler.init();
-
-// -------------------------------------------------------------
@@ -1,9 +1,4 @@
-// -------------------------------------------------------------
-
var bezierHandler = {
-
- // -------------------------------------------------------------
-
global: {
ismousedown: false,
prevX: 0,
@@ -18,9 +13,6 @@ var bezierHandler = {
isSecondStep: false,
isLastStep: false
},
-
- // -------------------------------------------------------------
-
mousedown: function(e) {
var g = this.global;
@@ -46,9 +38,6 @@ var bezierHandler = {
g.isLastStep = true;
}
},
-
- // -------------------------------------------------------------
-
mouseup: function(e) {
var g = this.global;
@@ -63,9 +52,6 @@ var bezierHandler = {
g.isSecondStep = true;
}
},
-
- // -------------------------------------------------------------
-
mousemove: function(e) {
var x = e.pageX - canvas.offsetLeft,
y = e.pageY - canvas.offsetTop;
@@ -86,9 +72,6 @@ var bezierHandler = {
drawHelper.bezier(tempContext, [g.prevX, g.prevY, g.firstControlPointX, g.firstControlPointY, g.secondControlPointX, g.secondControlPointY, x, y]);
}
},
-
- // -------------------------------------------------------------
-
end: function(x, y) {
var g = this.global;
@@ -107,9 +90,4 @@ var bezierHandler = {
points[points.length] = ['bezier', [g.prevX, g.prevY, g.firstControlPointX, g.firstControlPointY, g.secondControlPointX, g.secondControlPointY, x, y], drawHelper.getOptions()];
}
-
- // -------------------------------------------------------------
-
};
-
-// -------------------------------------------------------------
Oops, something went wrong.

0 comments on commit 17d7f53

Please sign in to comment.