Ver Fonte

revoke video url (#28513)

ycw há 1 ano atrás
pai
commit
191101183b
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      editor/js/Sidebar.Project.Video.js

+ 5 - 1
editor/js/Sidebar.Project.Video.js

@@ -147,7 +147,11 @@ function SidebarProjectVideo( editor ) {
 
 		output.addEventListener( 'unload', function () {
 
-			if ( video.src.startsWith( 'blob:' ) === false ) {
+			if ( video.src.startsWith( 'blob:' ) ) {
+
+				URL.revokeObjectURL( video.src );
+
+			} else {
 
 				ffmpeg.exit();
 

粤ICP备19079148号