@zcomponent/three-video-player 1.1.1 → 1.1.3
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/README.md +3 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -91,10 +91,7 @@ export class MyVideoBehavior extends Behavior<VideoPlayer> {
|
|
|
91
91
|
constructor(contextManager: ContextManager, instance: VideoPlayer) {
|
|
92
92
|
super(contextManager, instance);
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
this.instance.load().then(() => {
|
|
96
|
-
this.instance.play();
|
|
97
|
-
});
|
|
94
|
+
console.log(this.instance.length())
|
|
98
95
|
|
|
99
96
|
// Listen for the video to end
|
|
100
97
|
this.register(this.instance.onEnded, () => {
|
|
@@ -129,8 +126,8 @@ export class CustomVideoComponent extends Group {
|
|
|
129
126
|
autoplay: false
|
|
130
127
|
});
|
|
131
128
|
|
|
132
|
-
// Add the VideoPlayer
|
|
133
|
-
this.appendChild
|
|
129
|
+
// Add the VideoPlayer to our Group
|
|
130
|
+
this.appendChild(this.videoPlayer);
|
|
134
131
|
|
|
135
132
|
}
|
|
136
133
|
|
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.3",
|
|
4
4
|
"description": "HLS & MP4 Player for Mattercraft",
|
|
5
5
|
"author": "Zappar Limited",
|
|
6
6
|
"license": "Proprietary",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"beta": "mattercraft-api-docs/beta",
|
|
78
78
|
"alpha": "mattercraft-api-docs/alpha"
|
|
79
79
|
},
|
|
80
|
-
"directoryPath": "docs/**/*",
|
|
81
|
-
"objectACL": "
|
|
80
|
+
"directoryPath": "../../docs/**/*",
|
|
81
|
+
"objectACL": "",
|
|
82
82
|
"removeDirectoryRoot": true,
|
|
83
83
|
"awsAccessKeyName": "DOCS_AWS_ACCESS_KEY_ID",
|
|
84
84
|
"awsSecretAccessKeyName": "DOCS_AWS_SECRET_ACCESS_KEY"
|