@antmedia/web_player 2.11.1 → 2.11.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.
- package/dist/browser/web_player.js +4 -6
- package/dist/es/{plugin-ca799d0d.js → plugin-50e1316e.js} +134 -144
- package/dist/es/{video.es-0951ae41.js → video.es-be70c095.js} +36 -41
- package/dist/es/{videojs-webrtc-plugin-327afa5e.js → videojs-webrtc-plugin-7054aa21.js} +1 -1
- package/dist/es/videojs-webrtc-plugin-f56e1f9e.js +3 -0
- package/dist/es/{video.es-22056625.js → videojs-webrtc-plugin.es-2a0dfc29.js} +14968 -5052
- package/dist/es/videojs-webrtc-plugin.es-333788d9.js +7673 -0
- package/dist/es/{videojs-webrtc-plugin.es-f41400f7.js → videojs-webrtc-plugin.es-777bf41a.js} +1747 -1697
- package/dist/es/{videojs-webrtc-plugin.es-bd0b1a6d.js → videojs-webrtc-plugin.es-9544f6e0.js} +1563 -1672
- package/dist/es/web_player.js +7 -9
- package/dist/index.d.ts +17 -1
- package/dist/{plugin-84ab2cdd.js → plugin-bec9dc4a.js} +136 -146
- package/dist/{video.es-474303e7.js → video.es-df9af03d.js} +36 -43
- package/dist/{videojs-webrtc-plugin-bdf9fa8b.js → videojs-webrtc-plugin-3becde8c.js} +1 -1
- package/dist/videojs-webrtc-plugin-77a9860b.js +5 -0
- package/dist/{videojs-webrtc-plugin.es-72234e77.js → videojs-webrtc-plugin.es-0787d11e.js} +1575 -1684
- package/dist/{video.es-72122d04.js → videojs-webrtc-plugin.es-493b195e.js} +14964 -5052
- package/dist/videojs-webrtc-plugin.es-8f4ea4e4.js +7675 -0
- package/dist/{videojs-webrtc-plugin.es-ac81d249.js → videojs-webrtc-plugin.es-ee6d0333.js} +1757 -1707
- package/dist/web_player.js +7 -9
- package/package.json +3 -5
- package/rollup.config.module.cjs +6 -2
- package/src/web_player.js +4 -6
- package/test/embedded-player.test.js +1 -1
- package/tsconfig.json +0 -1
- package/dist/aframe-master-42bb78a9.js +0 -7139
- package/dist/dash.all.min-84806d51.js +0 -36
- package/dist/es/aframe-master-a6146619.js +0 -7137
- package/dist/es/dash.all.min-4a2772b6.js +0 -34
- package/dist/es/inheritsLoose-91dc2acc.js +0 -15
- package/dist/es/video-js.min-8b4dfe88.js +0 -3
- package/dist/es/videojs-contrib-quality-levels.es-1ea32822.js +0 -276
- package/dist/es/videojs-contrib-quality-levels.es-5f5b5f23.js +0 -287
- package/dist/es/videojs-hls-quality-selector.es-3c54e1cd.js +0 -391
- package/dist/es/videojs-webrtc-plugin-b9e4da27.js +0 -3
- package/dist/inheritsLoose-281376c7.js +0 -17
- package/dist/video-js.min-7e4ae47a.js +0 -5
- package/dist/videojs-contrib-quality-levels.es-6c3be3eb.js +0 -278
- package/dist/videojs-contrib-quality-levels.es-ef3cec9e.js +0 -289
- package/dist/videojs-hls-quality-selector.es-562309df.js +0 -393
- package/dist/videojs-webrtc-plugin-d30c3e7a.js +0 -5
package/dist/web_player.js
CHANGED
|
@@ -706,12 +706,12 @@ class WebPlayer {
|
|
|
706
706
|
}
|
|
707
707
|
loadWebRTCComponents() {
|
|
708
708
|
if (this.playOrder.includes("webrtc")) {
|
|
709
|
-
return Promise.resolve().then(function () { return require('./videojs-webrtc-plugin-
|
|
709
|
+
return Promise.resolve().then(function () { return require('./videojs-webrtc-plugin-77a9860b.js'); }).then(css => {
|
|
710
710
|
Logger_1.info("videojs-webrtc-plugin.css is loaded");
|
|
711
711
|
var styleElement = this.dom.createElement('style');
|
|
712
712
|
styleElement.textContent = css.default.toString(); // Assuming css module exports a string
|
|
713
713
|
this.dom.head.appendChild(styleElement);
|
|
714
|
-
return Promise.resolve().then(function () { return require('./videojs-webrtc-plugin.es-
|
|
714
|
+
return Promise.resolve().then(function () { return require('./videojs-webrtc-plugin.es-ee6d0333.js'); }).then(videojsWebrtcPluginLocal => {
|
|
715
715
|
Logger_1.info("videojs-webrtc-plugin is loaded");
|
|
716
716
|
});
|
|
717
717
|
});
|
|
@@ -732,14 +732,12 @@ class WebPlayer {
|
|
|
732
732
|
styleElement.textContent = css.default.toString(); // Assuming css module exports a string
|
|
733
733
|
this.dom.head.appendChild(styleElement);
|
|
734
734
|
}).then(() => {
|
|
735
|
-
return Promise.resolve().then(function () { return require('./video.es-
|
|
735
|
+
return Promise.resolve().then(function () { return require('./video.es-df9af03d.js'); });
|
|
736
736
|
}).then(videojs => {
|
|
737
737
|
window.videojs = videojs.default;
|
|
738
738
|
this.videojsLoaded = true;
|
|
739
739
|
}).then(() => {
|
|
740
|
-
return Promise.resolve().then(function () { return require('./
|
|
741
|
-
}).then(() => {
|
|
742
|
-
return Promise.resolve().then(function () { return require('./plugin-84ab2cdd.js'); });
|
|
740
|
+
return Promise.resolve().then(function () { return require('./plugin-bec9dc4a.js'); });
|
|
743
741
|
}).then(() => {
|
|
744
742
|
return this.loadWebRTCComponents();
|
|
745
743
|
});
|
|
@@ -802,7 +800,7 @@ class WebPlayer {
|
|
|
802
800
|
this.videojsPlayer.pause();
|
|
803
801
|
setTimeout(() => {
|
|
804
802
|
this.videojsPlayer.play();
|
|
805
|
-
},
|
|
803
|
+
}, 2000);
|
|
806
804
|
}
|
|
807
805
|
}
|
|
808
806
|
|
|
@@ -929,8 +927,8 @@ class WebPlayer {
|
|
|
929
927
|
};
|
|
930
928
|
this.videojsPlayer.ready(() => {
|
|
931
929
|
// If it's already added to player, no need to add again
|
|
932
|
-
if (typeof this.videojsPlayer.
|
|
933
|
-
this.videojsPlayer.
|
|
930
|
+
if (typeof this.videojsPlayer.qualitySelectorHls === "function") {
|
|
931
|
+
this.videojsPlayer.qualitySelectorHls({
|
|
934
932
|
displayCurrentQuality: true
|
|
935
933
|
});
|
|
936
934
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antmedia/web_player",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"description": "Ant Media Server Player that can play WebRTC, HLS, DASH",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -29,16 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "ISC",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@antmedia/videojs-webrtc-plugin": "^1.3.
|
|
32
|
+
"@antmedia/videojs-webrtc-plugin": "^1.3.1",
|
|
33
33
|
"@antmedia/webrtc_adaptor": "^2.11.3",
|
|
34
34
|
"@rollup/plugin-json": "6.1.0",
|
|
35
|
-
"@types/videojs-contrib-quality-levels": "^2.0.4",
|
|
36
35
|
"aframe": "1.5.0",
|
|
37
36
|
"dashjs": "^4.7.4",
|
|
38
37
|
"rimraf": "^5.0.5",
|
|
39
38
|
"video.js": "^8.17.3",
|
|
40
|
-
"videojs-
|
|
41
|
-
"videojs-hls-quality-selector": "^2.0.0"
|
|
39
|
+
"videojs-quality-selector-hls": "^1.1.1"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
|
44
42
|
"@babel/core": "^7.21.5",
|
package/rollup.config.module.cjs
CHANGED
package/src/web_player.js
CHANGED
|
@@ -237,7 +237,6 @@ export class WebPlayer {
|
|
|
237
237
|
|
|
238
238
|
// Initialize default values
|
|
239
239
|
this.setDefaults();
|
|
240
|
-
|
|
241
240
|
|
|
242
241
|
// Check if the first argument is a config object or a Window object
|
|
243
242
|
if (!this.isWindow(configOrWindow)) {
|
|
@@ -501,8 +500,7 @@ export class WebPlayer {
|
|
|
501
500
|
window.videojs = videojs.default;
|
|
502
501
|
this.videojsLoaded = true;
|
|
503
502
|
})
|
|
504
|
-
.then(() => { return import('videojs-
|
|
505
|
-
.then(() => { return import('videojs-hls-quality-selector') } )
|
|
503
|
+
.then(() => { return import('videojs-quality-selector-hls') } )
|
|
506
504
|
.then(() => { return this.loadWebRTCComponents(); });
|
|
507
505
|
}
|
|
508
506
|
else {
|
|
@@ -575,7 +573,7 @@ export class WebPlayer {
|
|
|
575
573
|
this.videojsPlayer.pause();
|
|
576
574
|
setTimeout(() => {
|
|
577
575
|
this.videojsPlayer.play();
|
|
578
|
-
},
|
|
576
|
+
}, 2000);
|
|
579
577
|
}
|
|
580
578
|
}
|
|
581
579
|
|
|
@@ -733,8 +731,8 @@ export class WebPlayer {
|
|
|
733
731
|
this.videojsPlayer.ready(() => {
|
|
734
732
|
|
|
735
733
|
// If it's already added to player, no need to add again
|
|
736
|
-
if (typeof this.videojsPlayer.
|
|
737
|
-
this.videojsPlayer.
|
|
734
|
+
if (typeof this.videojsPlayer.qualitySelectorHls === "function") {
|
|
735
|
+
this.videojsPlayer.qualitySelectorHls({
|
|
738
736
|
displayCurrentQuality: true,
|
|
739
737
|
});
|
|
740
738
|
}
|