@techsee/techsee-media-service 999.0.2-switch → 999.0.3-alpha2

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 (150) hide show
  1. package/lib/LocalStreamManager.d.ts +12 -0
  2. package/lib/LocalStreamManager.d.ts.map +1 -1
  3. package/lib/LocalStreamManager.js +440 -283
  4. package/lib/LocalStreamManager.js.map +1 -1
  5. package/lib/MediaConstants.d.ts +14 -4
  6. package/lib/MediaConstants.d.ts.map +1 -1
  7. package/lib/MediaConstants.js +83 -38
  8. package/lib/MediaConstants.js.map +1 -1
  9. package/lib/MediaContracts.d.ts +17 -14
  10. package/lib/MediaContracts.d.ts.map +1 -1
  11. package/lib/MediaContracts.js +3 -3
  12. package/lib/MediaContracts.js.map +1 -1
  13. package/lib/MediaPublisher.d.ts +3 -3
  14. package/lib/MediaPublisher.d.ts.map +1 -1
  15. package/lib/MediaPublisher.js +46 -35
  16. package/lib/MediaPublisher.js.map +1 -1
  17. package/lib/MediaServiceBase.d.ts +21 -7
  18. package/lib/MediaServiceBase.d.ts.map +1 -1
  19. package/lib/MediaServiceBase.js +924 -586
  20. package/lib/MediaServiceBase.js.map +1 -1
  21. package/lib/MediaSession/MediaServer.d.ts +45 -0
  22. package/lib/MediaSession/MediaServer.d.ts.map +1 -0
  23. package/lib/MediaSession/MediaServer.js +538 -0
  24. package/lib/MediaSession/MediaServer.js.map +1 -0
  25. package/lib/MediaSession/MediaSessionBase.d.ts +10 -1
  26. package/lib/MediaSession/MediaSessionBase.d.ts.map +1 -1
  27. package/lib/MediaSession/MediaSessionBase.js +128 -66
  28. package/lib/MediaSession/MediaSessionBase.js.map +1 -1
  29. package/lib/MediaSession/SessionOpentok.d.ts +11 -9
  30. package/lib/MediaSession/SessionOpentok.d.ts.map +1 -1
  31. package/lib/MediaSession/SessionOpentok.js +500 -352
  32. package/lib/MediaSession/SessionOpentok.js.map +1 -1
  33. package/lib/MediaSession/SessionTurn.d.ts +4 -1
  34. package/lib/MediaSession/SessionTurn.d.ts.map +1 -1
  35. package/lib/MediaSession/SessionTurn.js +611 -422
  36. package/lib/MediaSession/SessionTurn.js.map +1 -1
  37. package/lib/MediaSession/TurnConstants.js +31 -30
  38. package/lib/MediaSession/TurnConstants.js.map +1 -1
  39. package/lib/MediaSubscriber.d.ts +11 -11
  40. package/lib/MediaSubscriber.d.ts.map +1 -1
  41. package/lib/MediaSubscriber.js +236 -192
  42. package/lib/MediaSubscriber.js.map +1 -1
  43. package/lib/MediaUtils/Compatibility.d.ts +2 -1
  44. package/lib/MediaUtils/Compatibility.d.ts.map +1 -1
  45. package/lib/MediaUtils/Compatibility.js +130 -85
  46. package/lib/MediaUtils/Compatibility.js.map +1 -1
  47. package/lib/MediaUtils/MediaDomUtils.d.ts +3 -2
  48. package/lib/MediaUtils/MediaDomUtils.d.ts.map +1 -1
  49. package/lib/MediaUtils/MediaDomUtils.js +235 -174
  50. package/lib/MediaUtils/MediaDomUtils.js.map +1 -1
  51. package/lib/MediaUtils/MediaTracer.js +9 -4
  52. package/lib/MediaUtils/MediaTracer.js.map +1 -1
  53. package/lib/MediaUtils/index.d.ts +1 -0
  54. package/lib/MediaUtils/index.d.ts.map +1 -0
  55. package/lib/MediaUtils/index.js +16 -0
  56. package/lib/MediaUtils/index.js.map +1 -0
  57. package/lib/MultiParty/Contracts.d.ts +16 -0
  58. package/lib/MultiParty/Contracts.d.ts.map +1 -0
  59. package/lib/MultiParty/Contracts.js +6 -0
  60. package/lib/MultiParty/Contracts.js.map +1 -0
  61. package/lib/MultiParty/DetectWebRtcService.d.ts +16 -0
  62. package/lib/MultiParty/DetectWebRtcService.d.ts.map +1 -0
  63. package/lib/MultiParty/DetectWebRtcService.js +79 -0
  64. package/lib/MultiParty/DetectWebRtcService.js.map +1 -0
  65. package/lib/MultiParty/MediaCapabilitiesService.d.ts +23 -0
  66. package/lib/MultiParty/MediaCapabilitiesService.d.ts.map +1 -0
  67. package/lib/MultiParty/MediaCapabilitiesService.js +369 -0
  68. package/lib/MultiParty/MediaCapabilitiesService.js.map +1 -0
  69. package/lib/MultiParty/MediaCapabilitiesUtils.d.ts +5 -0
  70. package/lib/MultiParty/MediaCapabilitiesUtils.d.ts.map +1 -0
  71. package/lib/MultiParty/MediaCapabilitiesUtils.js +305 -0
  72. package/lib/MultiParty/MediaCapabilitiesUtils.js.map +1 -0
  73. package/lib/MultiParty/MultiPartyService.d.ts +40 -0
  74. package/lib/MultiParty/MultiPartyService.d.ts.map +1 -0
  75. package/lib/MultiParty/MultiPartyService.js +70 -0
  76. package/lib/MultiParty/MultiPartyService.js.map +1 -0
  77. package/lib/MultiParty/MultiPartyServiceFactory.d.ts +3 -0
  78. package/lib/MultiParty/MultiPartyServiceFactory.d.ts.map +1 -0
  79. package/lib/MultiParty/MultiPartyServiceFactory.js +21 -0
  80. package/lib/MultiParty/MultiPartyServiceFactory.js.map +1 -0
  81. package/lib/MultiParty/OpentokMultiPartyService.d.ts +29 -0
  82. package/lib/MultiParty/OpentokMultiPartyService.d.ts.map +1 -0
  83. package/lib/MultiParty/OpentokMultiPartyService.js +888 -0
  84. package/lib/MultiParty/OpentokMultiPartyService.js.map +1 -0
  85. package/lib/MultiParty/VideoLayoutType.d.ts +4 -0
  86. package/lib/MultiParty/VideoLayoutType.d.ts.map +1 -0
  87. package/lib/MultiParty/VideoLayoutType.js +13 -0
  88. package/lib/MultiParty/VideoLayoutType.js.map +1 -0
  89. package/lib/MultiParty/index.d.ts +4 -0
  90. package/lib/MultiParty/index.d.ts.map +1 -0
  91. package/lib/MultiParty/index.js +61 -0
  92. package/lib/MultiParty/index.js.map +1 -0
  93. package/lib/MultiParty/opentok.d.ts +503 -0
  94. package/lib/TechseeMediaStream.d.ts +6 -6
  95. package/lib/TechseeMediaStream.d.ts.map +1 -1
  96. package/lib/TechseeMediaStream.js +59 -53
  97. package/lib/TechseeMediaStream.js.map +1 -1
  98. package/lib/oldCode/constants.js +20 -15
  99. package/lib/oldCode/constants.js.map +1 -1
  100. package/lib/oldCode/event-emitter.js +45 -22
  101. package/lib/oldCode/event-emitter.js.map +1 -1
  102. package/lib/oldCode/index.js +48 -52
  103. package/lib/oldCode/index.js.map +1 -1
  104. package/lib/oldCode/opentok/session.js +261 -236
  105. package/lib/oldCode/opentok/session.js.map +1 -1
  106. package/lib/oldCode/opentok/stream.js +283 -269
  107. package/lib/oldCode/opentok/stream.js.map +1 -1
  108. package/lib/oldCode/publisher.js +96 -71
  109. package/lib/oldCode/publisher.js.map +1 -1
  110. package/lib/oldCode/service.js +294 -272
  111. package/lib/oldCode/service.js.map +1 -1
  112. package/lib/oldCode/session.js +82 -60
  113. package/lib/oldCode/session.js.map +1 -1
  114. package/lib/oldCode/stream.js +153 -125
  115. package/lib/oldCode/stream.js.map +1 -1
  116. package/lib/oldCode/subscriber.js +60 -35
  117. package/lib/oldCode/subscriber.js.map +1 -1
  118. package/lib/oldCode/tracer.d.ts +3 -2
  119. package/lib/oldCode/tracer.d.ts.map +1 -1
  120. package/lib/oldCode/tracer.js +181 -130
  121. package/lib/oldCode/tracer.js.map +1 -1
  122. package/lib/oldCode/utils/ImageFixer.js +67 -44
  123. package/lib/oldCode/utils/ImageFixer.js.map +1 -1
  124. package/lib/oldCode/webrtc/constants.js +102 -110
  125. package/lib/oldCode/webrtc/constants.js.map +1 -1
  126. package/lib/oldCode/webrtc/helper.js +176 -124
  127. package/lib/oldCode/webrtc/helper.js.map +1 -1
  128. package/lib/oldCode/webrtc/session-kms.js +408 -393
  129. package/lib/oldCode/webrtc/session-kms.js.map +1 -1
  130. package/lib/oldCode/webrtc/session-loopback.js +245 -227
  131. package/lib/oldCode/webrtc/session-loopback.js.map +1 -1
  132. package/lib/oldCode/webrtc/session-turn.js +705 -658
  133. package/lib/oldCode/webrtc/session-turn.js.map +1 -1
  134. package/lib/oldCode/webrtc/session-turn.v2.js +480 -471
  135. package/lib/oldCode/webrtc/session-turn.v2.js.map +1 -1
  136. package/lib/oldCode/webrtc/session.js +12 -6
  137. package/lib/oldCode/webrtc/session.js.map +1 -1
  138. package/lib/oldCode/webrtc/stream.js +526 -504
  139. package/lib/oldCode/webrtc/stream.js.map +1 -1
  140. package/lib/oldCode/webrtc/temasys/adapter-loader.js +5 -6
  141. package/lib/oldCode/webrtc/temasys/adapter-loader.js.map +1 -1
  142. package/lib/oldCode/webrtc/temasys/adapter.js +5264 -5192
  143. package/lib/oldCode/webrtc/temasys/adapter.js.map +1 -1
  144. package/lib/oldCode/webrtc/webrtc-ie-shim.js +3357 -2927
  145. package/lib/oldCode/webrtc/webrtc-ie-shim.js.map +1 -1
  146. package/lib/qos/raw-qos.js +348 -273
  147. package/lib/qos/raw-qos.js.map +1 -1
  148. package/lib/webrtc-ie-shim.js +3386 -2985
  149. package/lib/webrtc-ie-shim.js.map +1 -1
  150. package/package.json +54 -42
package/package.json CHANGED
@@ -1,74 +1,86 @@
1
1
  {
2
2
  "name": "@techsee/techsee-media-service",
3
- "version": "999.0.2-switch",
4
- "description": "Techsee Media Service Client",
3
+ "version": "999.0.3-alpha2",
4
+ "description": "Techsee Media Service",
5
5
  "author": "TechSee",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
8
- "preinstall": "npm update @techsee/techsee-common",
8
+ "preinstall": "npm update @techsee/techsee-common @techsee/openvidu-browser",
9
9
  "prepublishOnly": "npm run build && npm run tag",
10
10
  "postpublish": "npm run clean",
11
- "build": "npm run lint-fix && gulp --gulpfile ./.tools/build.js",
11
+ "build": "npm run lint-fix && npm run test && gulp --gulpfile ./.tools/build.js",
12
12
  "clean": "gulp --gulpfile ./.tools/build.js --clean",
13
13
  "lint": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts ./src ",
14
14
  "lint-fix": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts ./src --fix",
15
15
  "tag": "git tag v$npm_package_version -f | git push -f --tags",
16
- "demo": "start-storybook -p 9003 -c .storybook -s ./ && open http://localhost:9003/"
16
+ "demo": "start-storybook -p 9003 -c .storybook -s ./ && open http://localhost:9003/",
17
+ "demo-build": "build-storybook -c .storybook -o demo-dist",
18
+ "test": "jest --config=./jest.config.js"
17
19
  },
18
20
  "dependencies": {
19
21
  "@techsee/kurento-utils-temasys-mod": "6.6.3-dev-3",
20
- "@techsee/techsee-common": "~0.19.1",
22
+ "@techsee/openvidu-browser": "~12.15.6",
23
+ "@techsee/techsee-common": "^2.14.0",
21
24
  "bluebird": "~3.7.2",
22
25
  "kurento-utils": "6.6.2",
23
- "lodash": "4.13.1",
26
+ "lodash": "4.17.20",
24
27
  "socket.io-client": "2.1.1",
25
- "webrtc-adapter": "6.3.0"
28
+ "webrtc-adapter": "7.7.1"
26
29
  },
27
30
  "devDependencies": {
28
- "@storybook/addon-actions": "~5.2.8",
29
- "@storybook/addon-info": "~3.4.12",
30
- "@storybook/addon-knobs": "~3.4.12",
31
- "@storybook/addon-options": "~3.4.12",
32
- "@storybook/addon-storysource": "~5.2.8",
33
- "@storybook/addon-viewport": "~5.2.8",
34
- "@storybook/react": "~5.2.8",
31
+ "@babel/plugin-proposal-decorators": "7.13.15",
32
+ "@babel/preset-env": "7.14.0",
33
+ "@babel/preset-react": "7.13.13",
34
+ "@babel/runtime": "7.14.0",
35
+ "@storybook/addon-actions": "~5.3.19",
36
+ "@storybook/addon-info": "~5.3.19",
37
+ "@storybook/addon-knobs": "~5.3.19",
38
+ "@storybook/addon-options": "~5.3.19",
39
+ "@storybook/addon-storysource": "~5.3.19",
40
+ "@storybook/addon-viewport": "~5.3.19",
41
+ "@storybook/react": "~5.3.19",
42
+ "@types/babel__core": "7.1.8",
43
+ "@types/babel__traverse": "7.0.12",
35
44
  "@types/bluebird": "~3.5.29",
36
- "@types/jest": "~24.0.13",
37
- "@types/lodash": "~4.14.129",
45
+ "@types/jest": "~26.0.20",
46
+ "@types/lodash": "~4.14.168",
38
47
  "@types/node": "~10.12.18",
39
48
  "@types/socket.io-client": "~1.4.32",
40
- "@types/storybook__addon-actions": "~3.4.3",
41
- "@types/storybook__react": "~3.0.9",
42
- "@typescript-eslint/eslint-plugin": "~1.5.0",
43
- "babel-core": "~6.26.3",
44
- "babel-loader": "~7.1.5",
45
- "babel-plugin-transform-class-properties": "~6.24.1",
46
- "babel-plugin-transform-decorators-legacy": "~1.3.5",
47
- "babel-plugin-transform-runtime": "~6.23.0",
48
- "babel-preset-env": "~1.7.0",
49
- "babel-preset-es2015": "~6.24.1",
50
- "babel-preset-react": "~6.24.1",
51
- "babel-preset-stage-3": "~6.24.1",
52
- "babel-runtime": "~6.26.0",
49
+ "@types/storybook__addon-actions": "~5.2.1",
50
+ "@types/storybook__react": "~5.2.1",
51
+ "@typescript-eslint/eslint-plugin": "~4.14.0",
52
+ "@typescript-eslint/parser": "~4.14.0",
53
+ "babel-loader": "8.2.2",
54
+ "babel-plugin-transform-class-properties": "6.24.1",
55
+ "babel-plugin-transform-runtime": "6.23.0",
53
56
  "del": "~4.1.1",
54
- "eslint": "~5.16.0",
55
- "eslint-plugin-import": "~2.16.0",
56
- "eslint-plugin-jest": "~22.4.1",
57
- "eslint-plugin-promise": "~4.0.1",
58
- "eslint-plugin-standard": "~4.0.0",
57
+ "eslint": "~7.18.0",
58
+ "eslint-config-airbnb": "~18.2.1",
59
+ "eslint-config-prettier": "~7.2.0",
60
+ "eslint-plugin-import": "~2.22.1",
61
+ "eslint-plugin-jest": "24.1.3",
62
+ "eslint-plugin-jsx-a11y": "~6.4.1",
63
+ "eslint-plugin-prettier": "~3.3.1",
64
+ "eslint-plugin-react": "~7.22.0",
59
65
  "gulp": "~4.0.1",
60
- "gulp-babel": "~7.0.1",
66
+ "gulp-babel": "8.0.0",
61
67
  "gulp-sourcemaps": "~2.6.5",
62
68
  "gulp-typescript": "~5.0.1",
63
- "jest": "~24.8.0",
69
+ "husky": "~4.3.8",
70
+ "jest": "~26.6.3",
64
71
  "merge-stream": "~1.0.1",
65
- "open-browser-webpack-plugin": "0.0.5",
66
- "react": "~16.12.0",
67
- "react-dom": "~16.12.0",
72
+ "react": "17.0.1",
73
+ "react-dom": "17.0.1",
68
74
  "socket.io": "~2.2.0",
69
- "ts-jest": "~24.0.2",
75
+ "ts-jest": "~26.4.4",
70
76
  "ts-loader": "~6.2.1",
71
- "typescript": "~3.3.4000"
77
+ "typescript": "~4.1.3"
78
+ },
79
+ "husky": {
80
+ "hooks": {
81
+ "pre-commit": "npm run lint && npm test",
82
+ "pre-push": "npm run lint && npm test"
83
+ }
72
84
  },
73
85
  "license": "ISC",
74
86
  "files": [