소스 검색

Source: Guard reference to `VideoFrame`. (#32301)

Michael Herzog 1 개월 전
부모
커밋
2df1da2067
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/textures/Source.js

+ 1 - 1
src/textures/Source.js

@@ -88,7 +88,7 @@ class Source {
 
 			target.set( data.videoWidth, data.videoHeight, 0 );
 
-		} else if ( data instanceof VideoFrame ) {
+		} else if ( ( typeof VideoFrame !== 'undefined' ) && ( data instanceof VideoFrame ) ) {
 
 			target.set( data.displayHeight, data.displayWidth, 0 );
 

粤ICP备19079148号