@zcomponent/three-video-player 1.1.6 → 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.
|
@@ -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
|
}
|
|
@@ -95,3 +95,6 @@ export class VideoPlayer extends BaseVideo {
|
|
|
95
95
|
return super.dispose();
|
|
96
96
|
}
|
|
97
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
|
+
}
|