File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
VideoOrImageCanvasBackground Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ export const ImageCanvas = ({
405405 videoTime = { videoTime }
406406 videoSrc = { videoSrc }
407407 imageSrc = { imageSrc }
408+ useCrossOrigin = { fullImageSegmentationMode }
408409 onChangeVideoTime = { onChangeVideoTime }
409410 onChangeVideoPlaying = { onChangeVideoPlaying }
410411 />
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default ({
2222 videoSrc,
2323 imageSrc,
2424 onLoad,
25+ useCrossOrigin = false ,
2526 videoPlaying,
2627 onChangeVideoTime,
2728 onChangeVideoPlaying,
@@ -119,7 +120,7 @@ export default ({
119120 ref = { imageRef }
120121 style = { stylePosition }
121122 onLoad = { onImageLoaded }
122- crossOrigin = "anonymous"
123+ crossOrigin = { useCrossOrigin ? "anonymous" : undefined }
123124 />
124125 ) : (
125126 < Video
You can’t perform that action at this time.
0 commit comments