feat: Перенести патч videojs в библиотеку
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hublib-web/video-player",
|
"name": "@hublib-web/video-player",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "Cross-framework video player package for React and Angular",
|
"description": "Cross-framework video player package for React and Angular",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -10,7 +10,8 @@
|
|||||||
"sideEffects": true,
|
"sideEffects": true,
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
"README.md"
|
"README.md",
|
||||||
|
"patches"
|
||||||
],
|
],
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
"*": {
|
"*": {
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
"hls.js": "1.6.14",
|
"hls.js": "1.6.14",
|
||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
"react-device-detect": "2.2.3",
|
"react-device-detect": "2.2.3",
|
||||||
"video.js": "8.23.4"
|
"video.js": "patch:video.js@npm:8.23.4#./patches/video.js+8.23.4.patch"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
||||||
|
|||||||
21
packages/video-player/patches/video.js+8.23.4.patch
Normal file
21
packages/video-player/patches/video.js+8.23.4.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
diff --git a/dist/video.es.js b/dist/video.es.js
|
||||||
|
index 20c8607..245bcba 100644
|
||||||
|
--- a/dist/video.es.js
|
||||||
|
+++ b/dist/video.es.js
|
||||||
|
@@ -31129,11 +31129,11 @@ const xhrFactory = function () {
|
||||||
|
callAllResponseHooks(_responseCallbackSet, request, error, response);
|
||||||
|
return callbackWrapper(request, error, response, callback);
|
||||||
|
});
|
||||||
|
- const originalAbort = request.abort;
|
||||||
|
- request.abort = function () {
|
||||||
|
- request.aborted = true;
|
||||||
|
- return originalAbort.apply(request, arguments);
|
||||||
|
- };
|
||||||
|
+ // const originalAbort = request.abort;
|
||||||
|
+ // request.abort = function () {
|
||||||
|
+ // request.aborted = true;
|
||||||
|
+ // return originalAbort.apply(request, arguments);
|
||||||
|
+ // };
|
||||||
|
request.uri = options.uri;
|
||||||
|
request.requestType = options.requestType;
|
||||||
|
request.requestTime = Date.now();
|
||||||
22
yarn.lock
22
yarn.lock
@@ -1043,7 +1043,7 @@ __metadata:
|
|||||||
sass: "npm:1.83.4"
|
sass: "npm:1.83.4"
|
||||||
storybook: "npm:8.6.14"
|
storybook: "npm:8.6.14"
|
||||||
typescript: "npm:5.9.3"
|
typescript: "npm:5.9.3"
|
||||||
video.js: "npm:8.23.4"
|
video.js: "patch:video.js@npm:8.23.4#./patches/video.js+8.23.4.patch"
|
||||||
vite: "npm:6.4.1"
|
vite: "npm:6.4.1"
|
||||||
vitest: "npm:^3.2.4"
|
vitest: "npm:^3.2.4"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -6726,6 +6726,26 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"video.js@patch:video.js@npm:8.23.4#./patches/video.js+8.23.4.patch::locator=%40hublib-web%2Fvideo-player%40workspace%3Apackages%2Fvideo-player":
|
||||||
|
version: 8.23.4
|
||||||
|
resolution: "video.js@patch:video.js@npm%3A8.23.4#./patches/video.js+8.23.4.patch::version=8.23.4&hash=b3aeb1&locator=%40hublib-web%2Fvideo-player%40workspace%3Apackages%2Fvideo-player"
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime": "npm:^7.12.5"
|
||||||
|
"@videojs/http-streaming": "npm:^3.17.2"
|
||||||
|
"@videojs/vhs-utils": "npm:^4.1.1"
|
||||||
|
"@videojs/xhr": "npm:2.7.0"
|
||||||
|
aes-decrypter: "npm:^4.0.2"
|
||||||
|
global: "npm:4.4.0"
|
||||||
|
m3u8-parser: "npm:^7.2.0"
|
||||||
|
mpd-parser: "npm:^1.3.1"
|
||||||
|
mux.js: "npm:^7.0.1"
|
||||||
|
videojs-contrib-quality-levels: "npm:4.1.0"
|
||||||
|
videojs-font: "npm:4.2.0"
|
||||||
|
videojs-vtt.js: "npm:0.15.5"
|
||||||
|
checksum: 10c0/afa58442ec2ebfbf71958ba488c816cb8da0f98a363aec1f30e06c5730dec4ad7ea8a2fdfcf7b97902b8646afbecf8b2a041e2a478aa62a10bbe5ee1bfd66546
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"videojs-contrib-quality-levels@npm:4.1.0":
|
"videojs-contrib-quality-levels@npm:4.1.0":
|
||||||
version: 4.1.0
|
version: 4.1.0
|
||||||
resolution: "videojs-contrib-quality-levels@npm:4.1.0"
|
resolution: "videojs-contrib-quality-levels@npm:4.1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user