@zcomponent/three-video-player 1.1.6 → 1.2.0-beta.1
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.
|
@@ -131,7 +131,7 @@ export declare abstract class BaseVideo extends Object3D implements Stream {
|
|
|
131
131
|
* The key color of the chroma key, as an RGB array.
|
|
132
132
|
* @zprop
|
|
133
133
|
* @zgroup Chroma Key Transparency
|
|
134
|
-
* @ztype color-norm-rgb
|
|
134
|
+
* @ztype color-norm-rgb-linear
|
|
135
135
|
* @zdefault [0, 1, 0]
|
|
136
136
|
*/
|
|
137
137
|
keyColor: Observable<[number, number, number], never>;
|
|
@@ -96,7 +96,7 @@ export class BaseVideo extends Object3D {
|
|
|
96
96
|
* The key color of the chroma key, as an RGB array.
|
|
97
97
|
* @zprop
|
|
98
98
|
* @zgroup Chroma Key Transparency
|
|
99
|
-
* @ztype color-norm-rgb
|
|
99
|
+
* @ztype color-norm-rgb-linear
|
|
100
100
|
* @zdefault [0, 1, 0]
|
|
101
101
|
*/
|
|
102
102
|
this.keyColor = new Observable([0, 1, 0]);
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zcomponent/three-video-player",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.0-beta.1",
|
|
4
4
|
"description": "HLS & MP4 Player for Mattercraft",
|
|
5
5
|
"author": "Zappar Limited",
|
|
6
6
|
"license": "Proprietary",
|
|
@@ -21,19 +21,20 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "rm -rf lib && tsc && tsc-alias",
|
|
23
23
|
"watch": "tsc -w",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"docs": "typedoc --out docs",
|
|
25
|
+
"predocs": "npm run ctix",
|
|
26
|
+
"ctix": "ctix build"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"hls.js": "^1.5.12"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@zcomponent/three": "^1.
|
|
32
|
+
"@zcomponent/three": "^1.31.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"@zcomponent/three": "
|
|
35
|
-
"@zcomponent/core": "
|
|
36
|
-
"three": "0.150.1 - 164.0"
|
|
35
|
+
"@zcomponent/three": "*",
|
|
36
|
+
"@zcomponent/core": "*",
|
|
37
|
+
"three": "0.150.1 - 0.164.0"
|
|
37
38
|
},
|
|
38
39
|
"keywords": [],
|
|
39
40
|
"release": {
|
|
@@ -58,22 +59,7 @@
|
|
|
58
59
|
"@semantic-release/changelog",
|
|
59
60
|
"@semantic-release/npm",
|
|
60
61
|
"@semantic-release/gitlab",
|
|
61
|
-
"@semantic-release/git"
|
|
62
|
-
[
|
|
63
|
-
"@rimac-technology/semantic-release-s3",
|
|
64
|
-
{
|
|
65
|
-
"s3Bucket": {
|
|
66
|
-
"main": "mattercraft-api-docs/prod",
|
|
67
|
-
"beta": "mattercraft-api-docs-beta",
|
|
68
|
-
"alpha": "mattercraft-api-docs-alpha"
|
|
69
|
-
},
|
|
70
|
-
"directoryPath": "../../docs/**/*",
|
|
71
|
-
"objectACL": "",
|
|
72
|
-
"removeDirectoryRoot": true,
|
|
73
|
-
"awsAccessKeyName": "DOCS_AWS_ACCESS_KEY_ID",
|
|
74
|
-
"awsSecretAccessKeyName": "DOCS_AWS_SECRET_ACCESS_KEY"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
62
|
+
"@semantic-release/git"
|
|
77
63
|
],
|
|
78
64
|
"tagFormat": "@zcomponent/three-video-player@${version}"
|
|
79
65
|
}
|