@vtx/player 1.7.33 → 1.8.0

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 (105) hide show
  1. package/README.md +2 -2
  2. package/lib/api/fetch.js +69 -67
  3. package/lib/api/fetch.js.map +1 -1
  4. package/lib/api/index.js +47 -34
  5. package/lib/api/index.js.map +1 -1
  6. package/lib/api/types.d.ts +5 -5
  7. package/lib/api/types.js +1 -0
  8. package/lib/api/types.js.map +1 -1
  9. package/lib/bd/PlayerManager.js +7 -8
  10. package/lib/bd/PlayerManager.js.map +1 -1
  11. package/lib/bill-player/index.d.ts +1 -1
  12. package/lib/bill-player/index.js +11 -9
  13. package/lib/bill-player/index.js.map +1 -1
  14. package/lib/bill-player/style/index.less +320 -320
  15. package/lib/components/set-tag-video/index.js +8 -7
  16. package/lib/components/set-tag-video/index.js.map +1 -1
  17. package/lib/components/set-tag-video/style/index.less +125 -125
  18. package/lib/components/split-screen/index.d.ts +1 -1
  19. package/lib/components/split-screen/index.js +5 -3
  20. package/lib/components/split-screen/index.js.map +1 -1
  21. package/lib/components/tag-video/index.js +11 -10
  22. package/lib/components/tag-video/index.js.map +1 -1
  23. package/lib/components/tag-video/style/index.less +69 -69
  24. package/lib/components/video-scale/index.d.ts +1 -1
  25. package/lib/components/video-scale/index.js +3 -2
  26. package/lib/components/video-scale/index.js.map +1 -1
  27. package/lib/context/index.js +5 -3
  28. package/lib/context/index.js.map +1 -1
  29. package/lib/controls/index.d.ts +11 -11
  30. package/lib/controls/index.js +22 -14
  31. package/lib/controls/index.js.map +1 -1
  32. package/lib/controls/style/index.less +192 -192
  33. package/lib/h264/PlayerManager.js +7 -8
  34. package/lib/h264/PlayerManager.js.map +1 -1
  35. package/lib/history-control/index.d.ts +2 -2
  36. package/lib/history-control/index.js +10 -8
  37. package/lib/history-control/index.js.map +1 -1
  38. package/lib/history-control/style/index.less +252 -252
  39. package/lib/history-control-v2/components/grid-item/index.js +11 -10
  40. package/lib/history-control-v2/components/grid-item/index.js.map +1 -1
  41. package/lib/history-control-v2/components/panel/VideoTable.d.ts +1 -1
  42. package/lib/history-control-v2/components/panel/VideoTable.js +54 -51
  43. package/lib/history-control-v2/components/panel/VideoTable.js.map +1 -1
  44. package/lib/history-control-v2/components/panel/index.js +14 -13
  45. package/lib/history-control-v2/components/panel/index.js.map +1 -1
  46. package/lib/history-control-v2/context.js +2 -1
  47. package/lib/history-control-v2/context.js.map +1 -1
  48. package/lib/history-control-v2/index.d.ts +4 -4
  49. package/lib/history-control-v2/index.js +75 -71
  50. package/lib/history-control-v2/index.js.map +1 -1
  51. package/lib/history-control-v2/style/index.less +437 -437
  52. package/lib/history-control-v2/utils.js +18 -12
  53. package/lib/history-control-v2/utils.js.map +1 -1
  54. package/lib/history-player/index.d.ts +1 -1
  55. package/lib/history-player/index.js +112 -109
  56. package/lib/history-player/index.js.map +1 -1
  57. package/lib/history-player/style/index.less +102 -102
  58. package/lib/hooks/useSettings.js +2 -1
  59. package/lib/hooks/useSettings.js.map +1 -1
  60. package/lib/icc/PlayerManager.js +8 -9
  61. package/lib/icc/PlayerManager.js.map +1 -1
  62. package/lib/icc/api.d.ts +68 -0
  63. package/lib/icc/api.js +3 -2
  64. package/lib/icc/api.js.map +1 -1
  65. package/lib/icons/index.d.ts +36 -36
  66. package/lib/icons/index.js +73 -37
  67. package/lib/icons/index.js.map +1 -1
  68. package/lib/icons/index.less +32 -32
  69. package/lib/index.js +1 -1
  70. package/lib/index.js.map +1 -1
  71. package/lib/live-channel-player/index.d.ts +1 -1
  72. package/lib/live-channel-player/index.js +32 -29
  73. package/lib/live-channel-player/index.js.map +1 -1
  74. package/lib/live-control/index.d.ts +2 -2
  75. package/lib/live-control/index.js +13 -12
  76. package/lib/live-control/index.js.map +1 -1
  77. package/lib/live-control/style/index.less +99 -99
  78. package/lib/live-control-v2/index.d.ts +3 -3
  79. package/lib/live-control-v2/index.js +20 -18
  80. package/lib/live-control-v2/index.js.map +1 -1
  81. package/lib/live-control-v2/style/index.less +192 -192
  82. package/lib/live-player/index.js +63 -61
  83. package/lib/live-player/index.js.map +1 -1
  84. package/lib/live-player/style/index.less +75 -75
  85. package/lib/player/index.d.ts +1 -1
  86. package/lib/player/index.js +59 -55
  87. package/lib/player/index.js.map +1 -1
  88. package/lib/rsl/PlayerManager.d.ts +1 -1
  89. package/lib/rsl/PlayerManager.js +7 -8
  90. package/lib/rsl/PlayerManager.js.map +1 -1
  91. package/lib/typings/@vtx/utils/index.d.ts +28 -28
  92. package/lib/typings/h5player.d.ts +150 -150
  93. package/lib/typings/webrtcplayer.d.ts +56 -56
  94. package/lib/typings/wsplayer.d.ts +99 -99
  95. package/lib/utils/index.d.ts +1 -1
  96. package/lib/utils/index.js +23 -14
  97. package/lib/utils/index.js.map +1 -1
  98. package/lib/vite-env.d.ts +1 -1
  99. package/lib/vtxHls/PlayerManager.js +7 -8
  100. package/lib/vtxHls/PlayerManager.js.map +1 -1
  101. package/lib/vtxHls/WhepManager.js +10 -11
  102. package/lib/vtxHls/WhepManager.js.map +1 -1
  103. package/lib/webrtc/PlayerManager.js +7 -8
  104. package/lib/webrtc/PlayerManager.js.map +1 -1
  105. package/package.json +126 -126
package/package.json CHANGED
@@ -1,126 +1,126 @@
1
- {
2
- "name": "@vtx/player",
3
- "version": "1.7.33",
4
- "private": false,
5
- "description": "视频业务组件",
6
- "main": "./lib/index.js",
7
- "module": "./lib/index.js",
8
- "types": "./lib/index.d.ts",
9
- "files": [
10
- "lib"
11
- ],
12
- "scripts": {
13
- "start": "start-storybook -p 6006",
14
- "start:huanwei": "cross-env PREFIX=/huanwei umi dev",
15
- "build": "npm run compile",
16
- "compile": "gulp compile",
17
- "build:old": "npm run clean && rollup --config",
18
- "build-docs": "build-storybook",
19
- "build:huanwei": "cross-env UMI_ENV=prod UMI_COLOR=default PREFIX=/huanwei umi build",
20
- "lint:script": "eslint src --ext .ts,.tsx",
21
- "lint:style": "stylelint src/**/*.less --custom-syntax postcss-less --fix",
22
- "clean": "rimraf dist"
23
- },
24
- "husky": {
25
- "hooks": {
26
- "pre-commit": "lint-staged",
27
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
28
- }
29
- },
30
- "lint-staged": {
31
- "src/**/*.{ts,tsx,less,md,mdx,json}": "npm run lint:script",
32
- "src/**/*.{less}": "npm run lint:style"
33
- },
34
- "peerDependencies": {
35
- "react": ">=16.9.0",
36
- "react-dom": ">=16.9.0"
37
- },
38
- "dependencies": {
39
- "ahooks": "^3.4.0",
40
- "antd": "^4.20.7",
41
- "flv.js": "^1.6.2",
42
- "hls.js": "^1.1.5",
43
- "js-base64": "^3.7.2",
44
- "merge2": "^1.4.1",
45
- "react-collapsed": "3.3.2"
46
- },
47
- "devDependencies": {
48
- "@babel/cli": "^7.6.4",
49
- "@babel/core": "^7.6.4",
50
- "@babel/plugin-proposal-class-properties": "^7.5.5",
51
- "@babel/plugin-transform-runtime": "^7.6.2",
52
- "@babel/preset-env": "^7.6.3",
53
- "@babel/preset-react": "^7.6.3",
54
- "@babel/preset-typescript": "^7.17.12",
55
- "@babel/runtime": "^7.6.3",
56
- "@commitlint/cli": "^17.0.2",
57
- "@commitlint/config-conventional": "^17.0.2",
58
- "@rollup/plugin-babel": "^5.3.1",
59
- "@rollup/plugin-commonjs": "^22.0.0",
60
- "@rollup/plugin-node-resolve": "^13.3.0",
61
- "@rollup/plugin-typescript": "^8.3.2",
62
- "@rollup/plugin-url": "^7.0.0",
63
- "@storybook/addon-actions": "^6.5.7",
64
- "@storybook/addon-essentials": "^6.5.7",
65
- "@storybook/addon-interactions": "^6.5.7",
66
- "@storybook/addon-links": "^6.5.7",
67
- "@storybook/builder-vite": "^0.1.36",
68
- "@storybook/react": "^6.5.7",
69
- "@storybook/testing-library": "^0.0.11",
70
- "@trivago/prettier-plugin-sort-imports": "^3.2.0",
71
- "@types/react": "^18.0.0",
72
- "@types/react-dom": "^18.0.0",
73
- "@typescript-eslint/eslint-plugin": "^5.26.0",
74
- "@typescript-eslint/parser": "^5.26.0",
75
- "@vitejs/plugin-react": "^1.3.0",
76
- "@vtx/utils": "^1.0.12",
77
- "consola": "^2.15.3",
78
- "eslint": "^8.16.0",
79
- "eslint-config-prettier": "^8.5.0",
80
- "eslint-import-resolver-typescript": "^2.7.1",
81
- "eslint-plugin-import": "^2.26.0",
82
- "eslint-plugin-prettier": "^4.0.0",
83
- "eslint-plugin-react": "^7.30.0",
84
- "eslint-plugin-react-hooks": "^4.5.0",
85
- "eslint-plugin-storybook": "^0.5.12",
86
- "gulp": "^4.0.2",
87
- "gulp-babel": "^8.0.0",
88
- "gulp-bump": "^3.2.0",
89
- "gulp-clean": "^0.4.0",
90
- "gulp-less": "^4.0.1",
91
- "gulp-sourcemaps": "^3.0.0",
92
- "gulp-typescript": "^6.0.0-alpha.1",
93
- "husky": "^8.0.1",
94
- "less": "3.13.1",
95
- "less-plugin-autoprefix": "^2.0.0",
96
- "less-plugin-npm-import": "^2.1.0",
97
- "lint-staged": "^13.0.1",
98
- "postcss": "^8.4.14",
99
- "postcss-less": "^6.0.0",
100
- "prettier": "^2.6.2",
101
- "react": "^16.14.0",
102
- "react-dom": "^16.14.0",
103
- "rimraf": "^3.0.2",
104
- "rollup-plugin-dts": "^4.2.2",
105
- "rollup-plugin-peer-deps-external": "^2.2.4",
106
- "rollup-plugin-postcss": "^4.0.2",
107
- "rollup-plugin-terser": "^7.0.2",
108
- "stylelint": "^14.8.5",
109
- "stylelint-config-prettier": "^9.0.3",
110
- "stylelint-config-recess-order": "^3.0.0",
111
- "stylelint-config-recommended": "^7.0.0",
112
- "stylelint-config-standard": "^25.0.0",
113
- "stylelint-order": "^5.0.0",
114
- "through2": "^4.0.2",
115
- "typescript": "^4.6.3",
116
- "typescript-transform-paths": "^2.0.1",
117
- "vite": "^2.9.9",
118
- "vite-plugin-style-import": "^2.0.0"
119
- },
120
- "repository": "https://git.cloudhw.cn:3443/front-end/business/vtx-vis.git",
121
- "author": "chenxinyu <chenxinyu@vortexInfo.cn>",
122
- "license": "MIT",
123
- "publishConfig": {
124
- "registry": "https://registry.npmjs.org/"
125
- }
126
- }
1
+ {
2
+ "name": "@vtx/player",
3
+ "version": "1.8.0",
4
+ "private": false,
5
+ "description": "视频业务组件",
6
+ "main": "./lib/index.js",
7
+ "module": "./lib/index.js",
8
+ "types": "./lib/index.d.ts",
9
+ "files": [
10
+ "lib"
11
+ ],
12
+ "scripts": {
13
+ "start": "start-storybook -p 6006",
14
+ "start:huanwei": "cross-env PREFIX=/huanwei umi dev",
15
+ "build": "npm run compile",
16
+ "compile": "gulp compile",
17
+ "build:old": "npm run clean && rollup --config",
18
+ "build-docs": "build-storybook",
19
+ "build:huanwei": "cross-env UMI_ENV=prod UMI_COLOR=default PREFIX=/huanwei umi build",
20
+ "lint:script": "eslint src --ext .ts,.tsx",
21
+ "lint:style": "stylelint src/**/*.less --custom-syntax postcss-less --fix",
22
+ "clean": "rimraf dist"
23
+ },
24
+ "husky": {
25
+ "hooks": {
26
+ "pre-commit": "lint-staged",
27
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
28
+ }
29
+ },
30
+ "lint-staged": {
31
+ "src/**/*.{ts,tsx,less,md,mdx,json}": "npm run lint:script",
32
+ "src/**/*.{less}": "npm run lint:style"
33
+ },
34
+ "peerDependencies": {
35
+ "react": ">=16.9.0",
36
+ "react-dom": ">=16.9.0"
37
+ },
38
+ "dependencies": {
39
+ "ahooks": "^3.4.0",
40
+ "antd": "^4.20.7",
41
+ "hls.js": "^1.1.5",
42
+ "js-base64": "^3.7.2",
43
+ "merge2": "^1.4.1",
44
+ "mpegts.js": "1.8.0",
45
+ "react-collapsed": "3.3.2"
46
+ },
47
+ "devDependencies": {
48
+ "@babel/cli": "^7.6.4",
49
+ "@babel/core": "^7.6.4",
50
+ "@babel/plugin-proposal-class-properties": "^7.5.5",
51
+ "@babel/plugin-transform-runtime": "^7.6.2",
52
+ "@babel/preset-env": "^7.6.3",
53
+ "@babel/preset-react": "^7.6.3",
54
+ "@babel/preset-typescript": "^7.17.12",
55
+ "@babel/runtime": "^7.6.3",
56
+ "@commitlint/cli": "^17.0.2",
57
+ "@commitlint/config-conventional": "^17.0.2",
58
+ "@rollup/plugin-babel": "^5.3.1",
59
+ "@rollup/plugin-commonjs": "^22.0.0",
60
+ "@rollup/plugin-node-resolve": "^13.3.0",
61
+ "@rollup/plugin-typescript": "^8.3.2",
62
+ "@rollup/plugin-url": "^7.0.0",
63
+ "@storybook/addon-actions": "^6.5.7",
64
+ "@storybook/addon-essentials": "^6.5.7",
65
+ "@storybook/addon-interactions": "^6.5.7",
66
+ "@storybook/addon-links": "^6.5.7",
67
+ "@storybook/builder-vite": "^0.1.36",
68
+ "@storybook/react": "^6.5.7",
69
+ "@storybook/testing-library": "^0.0.11",
70
+ "@trivago/prettier-plugin-sort-imports": "^3.2.0",
71
+ "@types/react": "^18.0.0",
72
+ "@types/react-dom": "^18.0.0",
73
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
74
+ "@typescript-eslint/parser": "^5.26.0",
75
+ "@vitejs/plugin-react": "^1.3.0",
76
+ "@vtx/utils": "^1.0.12",
77
+ "consola": "^2.15.3",
78
+ "eslint": "^8.16.0",
79
+ "eslint-config-prettier": "^8.5.0",
80
+ "eslint-import-resolver-typescript": "^2.7.1",
81
+ "eslint-plugin-import": "^2.26.0",
82
+ "eslint-plugin-prettier": "^4.0.0",
83
+ "eslint-plugin-react": "^7.30.0",
84
+ "eslint-plugin-react-hooks": "^4.5.0",
85
+ "eslint-plugin-storybook": "^0.5.12",
86
+ "gulp": "^4.0.2",
87
+ "gulp-babel": "^8.0.0",
88
+ "gulp-bump": "^3.2.0",
89
+ "gulp-clean": "^0.4.0",
90
+ "gulp-less": "^4.0.1",
91
+ "gulp-sourcemaps": "^3.0.0",
92
+ "gulp-typescript": "^6.0.0-alpha.1",
93
+ "husky": "^8.0.1",
94
+ "less": "3.13.1",
95
+ "less-plugin-autoprefix": "^2.0.0",
96
+ "less-plugin-npm-import": "^2.1.0",
97
+ "lint-staged": "^13.0.1",
98
+ "postcss": "^8.4.14",
99
+ "postcss-less": "^6.0.0",
100
+ "prettier": "^2.6.2",
101
+ "react": "^16.14.0",
102
+ "react-dom": "^16.14.0",
103
+ "rimraf": "^3.0.2",
104
+ "rollup-plugin-dts": "^4.2.2",
105
+ "rollup-plugin-peer-deps-external": "^2.2.4",
106
+ "rollup-plugin-postcss": "^4.0.2",
107
+ "rollup-plugin-terser": "^7.0.2",
108
+ "stylelint": "^14.8.5",
109
+ "stylelint-config-prettier": "^9.0.3",
110
+ "stylelint-config-recess-order": "^3.0.0",
111
+ "stylelint-config-recommended": "^7.0.0",
112
+ "stylelint-config-standard": "^25.0.0",
113
+ "stylelint-order": "^5.0.0",
114
+ "through2": "^4.0.2",
115
+ "typescript": "^4.6.3",
116
+ "typescript-transform-paths": "^2.0.1",
117
+ "vite": "^2.9.9",
118
+ "vite-plugin-style-import": "^2.0.0"
119
+ },
120
+ "repository": "https://git.cloudhw.cn:3443/front-end/business/vtx-vis.git",
121
+ "author": "chenxinyu <chenxinyu@vortexInfo.cn>",
122
+ "license": "MIT",
123
+ "publishConfig": {
124
+ "registry": "https://registry.npmjs.org/"
125
+ }
126
+ }