@zcomponent/three-video-player 1.1.5 → 1.1.7
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.
|
@@ -230,6 +230,8 @@ export class BaseVideo extends Object3D {
|
|
|
230
230
|
this.videoElement.onplaying = null;
|
|
231
231
|
this.videoElement.onwaiting = null;
|
|
232
232
|
this.videoElement.onerror = null;
|
|
233
|
+
this.videoElement.src = '';
|
|
234
|
+
this.videoElement.srcObject = null;
|
|
233
235
|
return super.dispose();
|
|
234
236
|
}
|
|
235
237
|
}
|
|
@@ -27,7 +27,7 @@ export class VideoPlayer extends BaseVideo {
|
|
|
27
27
|
}
|
|
28
28
|
async load() {
|
|
29
29
|
const isHls = this.constructorProps.source.endsWith('.m3u8');
|
|
30
|
-
if (isHls && !
|
|
30
|
+
if (isHls && !isIOS())
|
|
31
31
|
return this._loadHlsVideo();
|
|
32
32
|
return this._loadMp4Video();
|
|
33
33
|
}
|
|
@@ -92,7 +92,9 @@ export class VideoPlayer extends BaseVideo {
|
|
|
92
92
|
this.hls.destroy();
|
|
93
93
|
this.hls = null;
|
|
94
94
|
}
|
|
95
|
-
this.videoElement.src = '';
|
|
96
95
|
return super.dispose();
|
|
97
96
|
}
|
|
98
97
|
}
|
|
98
|
+
function isIOS() {
|
|
99
|
+
return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) || (navigator.userAgent.includes('Mac') && 'ontouchend' in document);
|
|
100
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zcomponent/three-video-player",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "HLS & MP4 Player for Mattercraft",
|
|
5
5
|
"author": "Zappar Limited",
|
|
6
6
|
"license": "Proprietary",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@rimac-technology/semantic-release-s3",
|
|
64
64
|
{
|
|
65
65
|
"s3Bucket": {
|
|
66
|
-
"main": "mattercraft-api-docs",
|
|
66
|
+
"main": "mattercraft-api-docs/prod",
|
|
67
67
|
"beta": "mattercraft-api-docs-beta",
|
|
68
68
|
"alpha": "mattercraft-api-docs-alpha"
|
|
69
69
|
},
|