@@ -36,7 +36,7 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
36
36
/**
37
37
* Html5 and canvas video textures
38
38
*/
39
- public readonly textrues = {
39
+ public readonly textures = {
40
40
html5 : Texture . from ( this . element ) ,
41
41
canvas : Texture . from ( this . canvas ) ,
42
42
} ;
@@ -53,9 +53,9 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
53
53
this . element . style . display = 'hidden' ;
54
54
this . element . crossOrigin = 'anonymous' ;
55
55
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 ;
59
59
this . view . addChild ( this . sprite ) ;
60
60
61
61
if ( source instanceof VideoSource ) {
@@ -181,7 +181,7 @@ export class VideoClip extends VisualMixin(MediaClip<VideoClipProps>) {
181
181
182
182
this . context . clearRect ( 0 , 0 , this . canvas . width , this . canvas . height ) ;
183
183
this . context . drawImage ( frame , 0 , 0 ) ;
184
- this . textrues . canvas . source . update ( ) ;
184
+ this . textures . canvas . source . update ( ) ;
185
185
186
186
frame . close ( ) ;
187
187
}
0 commit comments