Skip to content

Commit 6adb6df

Browse files
sagar prakash kawadsagar prakash kawad
sagar prakash kawad
authored and
sagar prakash kawad
committed
fixed spelling error in VideoClip.textrues to VideoClip.textures #46
1 parent 04032f1 commit 6adb6df

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

VideoClip.textures

Whitespace-only changes.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/clips/video/video.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
3636
/**
3737
* Html5 and canvas video textures
3838
*/
39-
public readonly textrues = {
39+
public readonly textures = {
4040
html5: Texture.from(this.element),
4141
canvas: Texture.from(this.canvas),
4242
};
@@ -53,9 +53,9 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
5353
this.element.style.display = 'hidden';
5454
this.element.crossOrigin = 'anonymous';
5555

56-
(this.textrues.html5.source as any).autoPlay = false;
57-
(this.textrues.html5.source as any).loop = false;
58-
this.sprite.texture = this.textrues.html5;
56+
(this.textures.html5.source as any).autoPlay = false;
57+
(this.textures.html5.source as any).loop = false;
58+
this.sprite.texture = this.textures.html5;
5959
this.view.addChild(this.sprite);
6060

6161
if (source instanceof VideoSource) {
@@ -181,7 +181,7 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
181181

182182
this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);
183183
this.context.drawImage(frame, 0, 0);
184-
this.textrues.canvas.source.update();
184+
this.textures.canvas.source.update();
185185

186186
frame.close();
187187
}

0 commit comments

Comments
 (0)