@galacean/effects-plugin-multimedia 2.7.2 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects player multimedia plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 云垣
|
|
6
|
-
* Version: v2.7.
|
|
6
|
+
* Version: v2.7.4
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -1140,7 +1140,7 @@ exports.AudioComponent = __decorate([
|
|
|
1140
1140
|
|
|
1141
1141
|
/**
|
|
1142
1142
|
* 插件版本号
|
|
1143
|
-
*/ var version = "2.7.
|
|
1143
|
+
*/ var version = "2.7.4";
|
|
1144
1144
|
EFFECTS.registerPlugin("video", VideoLoader, EFFECTS.VFXItem);
|
|
1145
1145
|
EFFECTS.registerPlugin("audio", AudioLoader, EFFECTS.VFXItem);
|
|
1146
1146
|
EFFECTS.logger.info("Plugin multimedia version: " + version + ".");
|
package/dist/index.min.js
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Description: Galacean Effects player multimedia plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 云垣
|
|
6
|
-
* Version: v2.7.
|
|
7
|
-
*/function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@galacean/effects")):"function"==typeof define&&define.amd?define(["exports","@galacean/effects"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).ge=e.ge||{},e.ge.multimediaPlugin={}),e.ge)}(this,function(e,t){"use strict";var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}}),t.default=e,Object.freeze(t)}(t);function o(e,t,i,o,n,r,a){try{var s=e[r](a),u=s.value}catch(e){i(e);return}s.done?t(u):Promise.resolve(u).then(o,n)}function n(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(e){o(a,n,r,s,u,"next",e)}function u(e){o(a,n,r,s,u,"throw",e)}s(void 0)})}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function s(e,t,i,o){var n,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(r<3?n(a):r>3?n(t,i,a):n(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function u(e,t){var i,o,n,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(i)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(r=0)),r;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,o=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(n=(n=r.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){r=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(6===s[0]&&r.label<n[1]){r.label=n[1],n=s;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(s);break}n[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function c(e,t,i){return(c=d()?Reflect.construct:function(e,t,i){var o=[null];o.push.apply(o,t);var n=new(Function.bind.apply(e,o));return i&&r(n,i.prototype),n}).apply(null,arguments)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){var t="function"==typeof Map?new Map:void 0;return(A=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return c(e,arguments,l(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r(i,e)})(e)}"function"==typeof SuppressedError&&SuppressedError;var p={2e3:"Autoplay permission for audio and video is not enabled"};function h(e,t,i){return f.apply(this,arguments)}function f(){return(f=n(function(e,i,o){var n;return u(this,function(r){return n=o.renderLevel,[2,Promise.all(e.map(function(o){if(t.passRenderLevel(o.renderLevel,n)){var r=new URL(o.url,location.href).href;if(i===t.spec.MultimediaType.video)return t.loadVideo(r);if(i===t.spec.MultimediaType.audio)return v(r)}throw Error("Invalid "+i+" source: "+JSON.stringify(e)+".")}))]})})).apply(this,arguments)}function y(){return(y=n(function(){var e;return u(this,function(t){switch(t.label){case 0:(e=document.createElement("audio")).src="data:audio/mpeg;base64,//uQxAACFCEW8uewc8Nfu50FhJuQAGAFJCAhaIHoMhfEnBzixrwNsCGGGmyeCECGGRKWwnB0MkzGh6Hn7JLEstwCADQsJwBAAAOOhOAGAcd0gJgTBuW7HBgJBgfvEgCAEBEiOyeTDxyiyjZLEsRDyEzMz+921nJyWJZn6w8P1769e/AYCQI6tIJAkGHL16zpxhY5VeYGCdd3/93d9w4tygIO/4IHBOD8Hz/4f+IDkEHU4n8PqBMMBCQ0iXWYFnCIGqooaZHfRqOrgxuOtjmpCJCaYjmQqDz3NJUBTFWK4soYEoCumIJzIBldNhLUmAaDzhggZmSAkr9SqAIjGJFGEMCQlIPKDMuo24qZIrKDONHWGqlZbOymMy2yhCoBQywFQAgBEsETW0hCoIkqQWBINPWa3rCoEg1MiBIEiZMUiklyMfKVqoUOxIkSMtVTMzOMSBiKJQMAiWyROrf/5mq//8mkknNBQlFjiJFHKqqr//1VV6qq3vNVVbJpFHXkijM+pIoy1VX7zPOJEkmJAJaYgpqKBgASEAAIAAAAAAAAAAAA//uSxAAD1p0iZiw9OIgAADSAAAAEYAwFApgokRqIFjigukAADJhFjIUGoGFlRAycQGC5QsJJRWdRZRVWZVNYBStcjsRuaiMSgmOQOvVAKBSBY4ygsJGDCEoUEWrE3NBfUyJSSTTiPMpDUUvrhTsC7XR/G6bx2nse52G+cjBDhQW5tan7IZREJY6ULlDpCIhCIhkPDYgFaN2//3JZVZVY6UXQO2NXV1u//P/KSqyqSai7GFdu0DEqoheCVpA1v///6qqaaaYRKqIGKpiCmooGABIQAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",e.muted=!0,e.crossOrigin="anonymous",t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:throw t.sent(),new g(2e3,p[2e3]);case 4:return[2]}})})).apply(this,arguments)}function v(e){return m.apply(this,arguments)}function m(){return(m=n(function(e){var i,o;return u(this,function(n){switch(n.label){case 0:if(!window.AudioContext)return[3,5];n.label=1;case 1:return n.trys.push([1,4,,5]),i=new AudioContext,[4,t.loadBinary(e)];case 2:return o=n.sent(),[4,i.decodeAudioData(o)];case 3:return[2,n.sent()];case 4:throw n.sent(),Error("Failed to load audio from "+e+".");case 5:return[2,new Promise(function(t,i){var o=new Audio;"string"==typeof e?o.src=e:o.srcObject=e,o.muted=!1,o.addEventListener("canplaythrough",function(){t(o)}),o.addEventListener("error",function(){i(Error("Failed to load audio from "+o.src+"."))}),o.load()})]}})})).apply(this,arguments)}var g=function(e){function i(o,n){var r;return(r=e.call(this,n)||this).code=o,r.name=r.constructor.name,"captureStackTrace"in Error&&t.isFunction(Error.captureStackTrace)&&Error.captureStackTrace(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r),i),r}return a(i,e),i}(A(Error)),b=function(e){function i(){return e.apply(this,arguments)}return a(i,e),i.processAssets=function(e,i){return void 0===i&&(i={}),n(function(){var o,n,r;return u(this,function(a){switch(a.label){case 0:return[4,h(n=void 0===(o=e.videos)?[]:o,t.spec.MultimediaType.video,i)];case 1:return r=a.sent(),[2,{assets:n,loadedAssets:r}]}})})()},i}(t.AbstractPlugin),P=function(e){function i(){return e.apply(this,arguments)}return a(i,e),i.processAssets=function(e,i){return void 0===i&&(i={}),n(function(){var o,n,r;return u(this,function(a){switch(a.label){case 0:return[4,h(n=void 0===(o=e.audios)?[]:o,t.spec.MultimediaType.audio,i)];case 1:return r=a.sent(),[2,{assets:n,loadedAssets:r}]}})})()},i}(t.AbstractPlugin),C=0;e.VideoComponent=function(e){function i(t){var i;return(i=e.call(this,t)||this).played=!1,i.pendingPause=!1,i.threshold=.03,i.isPlayLoading=!1,i.isVideoActive=!1,i.transparent=!1,i.name="MVideo"+C++,i}a(i,e);var o=i.prototype;return o.setTexture=function(e){var i=this;return n(function(){var o,n,r;return u(this,function(a){switch(a.label){case 0:if(o=i.renderer.texture,n=i.item.composition,"string"!=typeof e)return[3,2];return[4,t.Texture.fromVideo(e,i.item.engine)];case 1:return r=a.sent(),[3,3];case 2:r=e,a.label=3;case 3:if(!n)return[2];return n.textures.forEach(function(e,t){e===o&&(n.textures[t]=r)}),i.engine.removeTexture(o),i.renderer.texture=r,i.material.setTexture("_MainTex",r),i.video=r.source.video,[2]}})})()},o.onAwake=function(){var t,i,o,n=this;e.prototype.onAwake.call(this),null==(t=this.item.composition)||t.on("goto",function(e){n.setCurrentTime(n.item.time)}),null==(i=this.item.composition)||i.on("pause",function(){n.pauseVideo()}),null==(o=this.item.composition)||o.on("play",function(e){n.item.time<0||n.playVideo()})},o.fromData=function(i){e.prototype.fromData.call(this,i);var o=i.interaction,n=i.options,r=n.video,a=n.startColor,s=n.playbackRate,u=n.volume,d=n.muted,c=n.transparent;if(this.transparent=void 0!==c&&c,r){var l=this.engine.findObject(r);if(l){this.video=l.data,this.setPlaybackRate(void 0===s?1:s),this.setVolume(void 0===u?1:u),this.setMuted(void 0!==d&&d);var A=this.item.defination.endBehavior;A===t.spec.EndBehavior.destroy||A===t.spec.EndBehavior.freeze?this.setLoop(!1):A===t.spec.EndBehavior.restart&&this.setLoop(!0)}}this.interaction=o,this.pauseVideo(),this.transparent&&this.material.enableMacro("TRANSPARENT_VIDEO",this.transparent),this.material.setColor("_Color",new t.math.Color().setFromArray(void 0===a?[1,1,1,1]:a))},o.render=function(t){e.prototype.render.call(this,t),this.renderer.texture.uploadCurrentVideoFrame()},o.onUpdate=function(i){e.prototype.onUpdate.call(this,i);var o,n,r=this.item,a=r.time,s=r.duration,u=r.endBehavior,d=r.composition;t.assertExist(d);var c=d.rootItem,l=c.endBehavior,A=c.duration,p=0===a||d.time===A||Math.abs(a-s)<=this.threshold;!(a>0)||p||this.played||this.playVideo(),!(a+this.threshold>=s)||u!==t.spec.EndBehavior.freeze||(null==(o=this.video)?void 0:o.paused)||this.pauseVideo(),!(d.time+this.threshold>=A)||(l===t.spec.EndBehavior.freeze?(null==(n=this.video)?void 0:n.paused)||this.pauseVideo():l===t.spec.EndBehavior.restart&&this.setCurrentTime(0))},o.getDuration=function(){return this.video?this.video.duration:0},o.getCurrentTime=function(){return this.video?this.video.currentTime:0},o.setCurrentTime=function(e){this.video&&(this.video.currentTime=e)},o.setLoop=function(e){this.video&&(this.video.loop=e)},o.setMuted=function(e){this.video&&this.video.muted!==e&&(this.video.muted=e)},o.setVolume=function(e){this.video&&this.video.volume!==e&&(this.video.volume=e)},o.setPlaybackRate=function(e){this.video&&this.video.playbackRate!==e&&(this.video.playbackRate=e)},o.playVideo=function(){var e=this;!this.played&&this.video&&(this.played=!0,this.isPlayLoading=!0,this.pendingPause=!1,this.video.play().then(function(){if(e.isPlayLoading=!1,!e.played||e.pendingPause){var t;e.pendingPause=!1,e.played=!1,null==(t=e.video)||t.pause()}}).catch(function(t){e.isPlayLoading=!1,e.played=!1,e.pendingPause=!1,"AbortError"!==t.name&&e.engine.renderErrors.add(t)}))},o.pauseVideo=function(){if(this.played&&(this.played=!1),this.video){if(this.isPlayLoading){this.pendingPause=!0;return}this.video.pause()}},o.onDestroy=function(){e.prototype.onDestroy.call(this),this.played=!1,this.isPlayLoading=!1,this.pendingPause=!1,this.video&&(this.video.pause(),this.video.src="",this.video.load())},o.onDisable=function(){e.prototype.onDisable.call(this),this.isVideoActive=!1,this.pauseVideo()},o.onEnable=function(){e.prototype.onEnable.call(this),this.isVideoActive=!0,this.playVideo()},i}(t.MaskableGraphic),e.VideoComponent=s([t.effectsClass(t.spec.DataType.VideoComponent)],e.VideoComponent);var E=function(){function e(e,i){this.engine=e,this.audioSourceInfo={},this.pendingOffset=0,this.isSupportAudioContext=!!window.AudioContext,this.options={endBehavior:t.spec.EndBehavior.destroy,duration:0},this.destroyed=!1,this.started=!1,this.initialized=!1,this.currentVolume=1,i&&this.setAudioSource(i)}var i=e.prototype;return i.setAudioSource=function(e){if((this.audio||this.audioSourceInfo.source)&&this.dispose(),function e(t,i){return null!=i&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](t):e(t,i)}(e,AudioBuffer)){var t=new AudioContext,i=t.createGain();i.connect(t.destination);var o=t.createBufferSource();o.buffer=e,o.connect(i),this.audioSourceInfo={source:o,audioContext:t,gainNode:i}}else this.audio=e;this.started&&this.play()},i.getCurrentTime=function(){if(!this.isSupportAudioContext)return(null==(e=this.audio)?void 0:e.currentTime)||0;var e,t=this.audioSourceInfo.audioContext;return(null==t?void 0:t.currentTime)||0},i.setCurrentTime=function(e){var t=Math.max(0,e);if(this.isSupportAudioContext){var i=this.options.duration&&this.options.duration>0?this.options.duration:void 0;this.pendingOffset=i?Math.min(t,i):t;return}if(this.audio){var o=Number.isFinite(this.audio.duration)?this.audio.duration:void 0;this.audio.currentTime=o?Math.min(t,o):t}},i.play=function(){var e=this;if(this.isSupportAudioContext){var i,o,n,r,a=this.audioSourceInfo,s=a.audioContext,u=a.source,d=a.gainNode;if(!s||!d)return;var c=null==u?void 0:u.buffer;if(!c)return;var l=this.options.duration&&this.options.duration>0?this.options.duration:c.duration;try{null==u||u.stop()}catch(e){}var A=s.createBufferSource();A.buffer=c,A.connect(d),A.playbackRate.value=null!=(i=null==u?void 0:u.playbackRate.value)?i:1,this.options.endBehavior===t.spec.EndBehavior.restart?(A.loop=!0,A.loopStart=0,A.loopEnd=l):(A.loop=null!=(o=null==u?void 0:u.loop)&&o,A.loopStart=null!=(n=null==u?void 0:u.loopStart)?n:0,A.loopEnd=null!=(r=null==u?void 0:u.loopEnd)?r:l),this.audioSourceInfo.source=A,"suspended"===s.state&&s.resume().catch(function(t){return e.engine.renderErrors.add(t)});try{A.start(0,this.pendingOffset||0),this.pendingOffset=0,this.started=!0}catch(e){this.engine.renderErrors.add(e)}}else this.audio&&(this.audio.loop=this.options.endBehavior===t.spec.EndBehavior.restart,this.audio.play().catch(function(t){return e.engine.renderErrors.add(t)}),this.started=!0)},i.pause=function(){if(this.isSupportAudioContext){var e,t=this.audioSourceInfo,i=t.source,o=t.audioContext;o&&o.currentTime>0&&this.started&&(null==i||i.stop())}else null==(e=this.audio)||e.pause()},i.setVolume=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.gainNode;t&&(t.gain.value=e,this.currentVolume=e)}else this.audio&&(this.audio.volume=e,this.currentVolume=e)},i.setPlaybackRate=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.source;t&&(t.playbackRate.value=e)}else this.audio&&(this.audio.playbackRate=e)},i.setLoop=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.source;t?t.loop=e:this.engine.renderErrors.add(Error("Audio source is not found."))}else this.audio&&(this.audio.loop=e)},i.setOptions=function(e){this.initialized||(this.options=e,this.initialized=!0)},i.setMuted=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.gainNode,i=e?0:this.currentVolume;t&&(t.gain.value=i)}else this.audio&&(this.audio.muted=e)},i.dispose=function(){var e,t=this;if(!this.destroyed){if(this.isSupportAudioContext){var i=this.audioSourceInfo,o=i.audioContext,n=i.source;this.started&&(null==n||n.stop()),null==o||o.close().catch(function(e){t.engine.renderErrors.add(e)})}else null==(e=this.audio)||e.pause();this.destroyed=!0}},e}();e.AudioComponent=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.isPlaying=!1,t}a(t,e);var i=t.prototype;return i.onAwake=function(){var t,i,o,n=this;e.prototype.onAwake.call(this),null==(t=this.item.composition)||t.on("play",function(e){n.audioPlayer.setMuted(!1),n.item.time<=0||(n.audioPlayer.setCurrentTime(n.item.time),n.audioPlayer.play(),n.isPlaying=!0)}),null==(i=this.item.composition)||i.on("pause",function(){n.audioPlayer.setMuted(!0),n.audioPlayer.pause(),n.isPlaying=!1}),null==(o=this.item.composition)||o.on("goto",function(e){n.audioPlayer.setMuted(!0),n.audioPlayer.setCurrentTime(n.item.time)})},i.onUpdate=function(t){e.prototype.onUpdate.call(this,t);var i=this.item,o=i.time,n=i.duration,r=i.endBehavior;o>0&&!1==this.isPlaying&&(this.audioPlayer.play(),this.isPlaying=!0),this.audioPlayer.setOptions({duration:n,endBehavior:r})},i.fromData=function(t){e.prototype.fromData.call(this,t);var i=t.options,o=i.playbackRate,n=i.muted,r=i.volume,a=void 0;i.audio&&(a=this.engine.findObject(i.audio).data),this.audioPlayer=new E(this.engine,a),this.audioPlayer.pause(),this.setPlaybackRate(void 0===o?1:o),this.setMuted(void 0!==n&&n),this.setVolume(void 0===r?1:r)},i.setAudioSource=function(e){this.audioPlayer.setAudioSource(e)},i.setVolume=function(e){this.audioPlayer.setVolume(e)},i.getCurrentTime=function(){return this.audioPlayer.getCurrentTime()},i.setMuted=function(e){this.audioPlayer.setMuted(e)},i.setLoop=function(e){this.audioPlayer.setLoop(e)},i.setPlaybackRate=function(e){this.audioPlayer.setPlaybackRate(e)},i.onDisable=function(){e.prototype.onDisable.call(this),this.audioPlayer.pause()},i.dispose=function(){e.prototype.dispose.call(this),this.audioPlayer.dispose()},t}(t.RendererComponent),e.AudioComponent=s([t.effectsClass(t.spec.DataType.AudioComponent)],e.AudioComponent);var S="2.7.2";t.registerPlugin("video",b,t.VFXItem),t.registerPlugin("audio",P,t.VFXItem),t.logger.info("Plugin multimedia version: "+S+"."),S!==i.version&&console.error("注意:请统一 Multimedia 插件与 Player 版本,不统一的版本混用会有不可预知的后果!","\nAttention: Please ensure the Multimedia plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!"),e.AudioPlayer=E,e.MultimediaError=g,e.checkAutoplayPermission=function(){return y.apply(this,arguments)},e.loadAudio=v,e.multimediaErrorDisplayMessageMap={2e3:"音视频自动播放权限未开启"},e.multimediaErrorMessageMap=p,e.processMultimedia=h,e.version=S,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
6
|
+
* Version: v2.7.4
|
|
7
|
+
*/function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@galacean/effects")):"function"==typeof define&&define.amd?define(["exports","@galacean/effects"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).ge=e.ge||{},e.ge.multimediaPlugin={}),e.ge)}(this,function(e,t){"use strict";var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}}),t.default=e,Object.freeze(t)}(t);function o(e,t,i,o,n,r,a){try{var s=e[r](a),u=s.value}catch(e){i(e);return}s.done?t(u):Promise.resolve(u).then(o,n)}function n(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(e){o(a,n,r,s,u,"next",e)}function u(e){o(a,n,r,s,u,"throw",e)}s(void 0)})}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function s(e,t,i,o){var n,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(r<3?n(a):r>3?n(t,i,a):n(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function u(e,t){var i,o,n,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(i)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(r=0)),r;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,o=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(n=(n=r.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){r=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(6===s[0]&&r.label<n[1]){r.label=n[1],n=s;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(s);break}n[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function c(e,t,i){return(c=d()?Reflect.construct:function(e,t,i){var o=[null];o.push.apply(o,t);var n=new(Function.bind.apply(e,o));return i&&r(n,i.prototype),n}).apply(null,arguments)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){var t="function"==typeof Map?new Map:void 0;return(A=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return c(e,arguments,l(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r(i,e)})(e)}"function"==typeof SuppressedError&&SuppressedError;var p={2e3:"Autoplay permission for audio and video is not enabled"};function h(e,t,i){return f.apply(this,arguments)}function f(){return(f=n(function(e,i,o){var n;return u(this,function(r){return n=o.renderLevel,[2,Promise.all(e.map(function(o){if(t.passRenderLevel(o.renderLevel,n)){var r=new URL(o.url,location.href).href;if(i===t.spec.MultimediaType.video)return t.loadVideo(r);if(i===t.spec.MultimediaType.audio)return v(r)}throw Error("Invalid "+i+" source: "+JSON.stringify(e)+".")}))]})})).apply(this,arguments)}function y(){return(y=n(function(){var e;return u(this,function(t){switch(t.label){case 0:(e=document.createElement("audio")).src="data:audio/mpeg;base64,//uQxAACFCEW8uewc8Nfu50FhJuQAGAFJCAhaIHoMhfEnBzixrwNsCGGGmyeCECGGRKWwnB0MkzGh6Hn7JLEstwCADQsJwBAAAOOhOAGAcd0gJgTBuW7HBgJBgfvEgCAEBEiOyeTDxyiyjZLEsRDyEzMz+921nJyWJZn6w8P1769e/AYCQI6tIJAkGHL16zpxhY5VeYGCdd3/93d9w4tygIO/4IHBOD8Hz/4f+IDkEHU4n8PqBMMBCQ0iXWYFnCIGqooaZHfRqOrgxuOtjmpCJCaYjmQqDz3NJUBTFWK4soYEoCumIJzIBldNhLUmAaDzhggZmSAkr9SqAIjGJFGEMCQlIPKDMuo24qZIrKDONHWGqlZbOymMy2yhCoBQywFQAgBEsETW0hCoIkqQWBINPWa3rCoEg1MiBIEiZMUiklyMfKVqoUOxIkSMtVTMzOMSBiKJQMAiWyROrf/5mq//8mkknNBQlFjiJFHKqqr//1VV6qq3vNVVbJpFHXkijM+pIoy1VX7zPOJEkmJAJaYgpqKBgASEAAIAAAAAAAAAAAA//uSxAAD1p0iZiw9OIgAADSAAAAEYAwFApgokRqIFjigukAADJhFjIUGoGFlRAycQGC5QsJJRWdRZRVWZVNYBStcjsRuaiMSgmOQOvVAKBSBY4ygsJGDCEoUEWrE3NBfUyJSSTTiPMpDUUvrhTsC7XR/G6bx2nse52G+cjBDhQW5tan7IZREJY6ULlDpCIhCIhkPDYgFaN2//3JZVZVY6UXQO2NXV1u//P/KSqyqSai7GFdu0DEqoheCVpA1v///6qqaaaYRKqIGKpiCmooGABIQAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",e.muted=!0,e.crossOrigin="anonymous",t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:throw t.sent(),new g(2e3,p[2e3]);case 4:return[2]}})})).apply(this,arguments)}function v(e){return m.apply(this,arguments)}function m(){return(m=n(function(e){var i,o;return u(this,function(n){switch(n.label){case 0:if(!window.AudioContext)return[3,5];n.label=1;case 1:return n.trys.push([1,4,,5]),i=new AudioContext,[4,t.loadBinary(e)];case 2:return o=n.sent(),[4,i.decodeAudioData(o)];case 3:return[2,n.sent()];case 4:throw n.sent(),Error("Failed to load audio from "+e+".");case 5:return[2,new Promise(function(t,i){var o=new Audio;"string"==typeof e?o.src=e:o.srcObject=e,o.muted=!1,o.addEventListener("canplaythrough",function(){t(o)}),o.addEventListener("error",function(){i(Error("Failed to load audio from "+o.src+"."))}),o.load()})]}})})).apply(this,arguments)}var g=function(e){function i(o,n){var r;return(r=e.call(this,n)||this).code=o,r.name=r.constructor.name,"captureStackTrace"in Error&&t.isFunction(Error.captureStackTrace)&&Error.captureStackTrace(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r),i),r}return a(i,e),i}(A(Error)),b=function(e){function i(){return e.apply(this,arguments)}return a(i,e),i.processAssets=function(e,i){return void 0===i&&(i={}),n(function(){var o,n,r;return u(this,function(a){switch(a.label){case 0:return[4,h(n=void 0===(o=e.videos)?[]:o,t.spec.MultimediaType.video,i)];case 1:return r=a.sent(),[2,{assets:n,loadedAssets:r}]}})})()},i}(t.AbstractPlugin),P=function(e){function i(){return e.apply(this,arguments)}return a(i,e),i.processAssets=function(e,i){return void 0===i&&(i={}),n(function(){var o,n,r;return u(this,function(a){switch(a.label){case 0:return[4,h(n=void 0===(o=e.audios)?[]:o,t.spec.MultimediaType.audio,i)];case 1:return r=a.sent(),[2,{assets:n,loadedAssets:r}]}})})()},i}(t.AbstractPlugin),C=0;e.VideoComponent=function(e){function i(t){var i;return(i=e.call(this,t)||this).played=!1,i.pendingPause=!1,i.threshold=.03,i.isPlayLoading=!1,i.isVideoActive=!1,i.transparent=!1,i.name="MVideo"+C++,i}a(i,e);var o=i.prototype;return o.setTexture=function(e){var i=this;return n(function(){var o,n,r;return u(this,function(a){switch(a.label){case 0:if(o=i.renderer.texture,n=i.item.composition,"string"!=typeof e)return[3,2];return[4,t.Texture.fromVideo(e,i.item.engine)];case 1:return r=a.sent(),[3,3];case 2:r=e,a.label=3;case 3:if(!n)return[2];return n.textures.forEach(function(e,t){e===o&&(n.textures[t]=r)}),i.engine.removeTexture(o),i.renderer.texture=r,i.material.setTexture("_MainTex",r),i.video=r.source.video,[2]}})})()},o.onAwake=function(){var t,i,o,n=this;e.prototype.onAwake.call(this),null==(t=this.item.composition)||t.on("goto",function(e){n.setCurrentTime(n.item.time)}),null==(i=this.item.composition)||i.on("pause",function(){n.pauseVideo()}),null==(o=this.item.composition)||o.on("play",function(e){n.item.time<0||n.playVideo()})},o.fromData=function(i){e.prototype.fromData.call(this,i);var o=i.interaction,n=i.options,r=n.video,a=n.startColor,s=n.playbackRate,u=n.volume,d=n.muted,c=n.transparent;if(this.transparent=void 0!==c&&c,r){var l=this.engine.findObject(r);if(l){this.video=l.data,this.setPlaybackRate(void 0===s?1:s),this.setVolume(void 0===u?1:u),this.setMuted(void 0!==d&&d);var A=this.item.defination.endBehavior;A===t.spec.EndBehavior.destroy||A===t.spec.EndBehavior.freeze?this.setLoop(!1):A===t.spec.EndBehavior.restart&&this.setLoop(!0)}}this.interaction=o,this.pauseVideo(),this.transparent&&this.material.enableMacro("TRANSPARENT_VIDEO",this.transparent),this.material.setColor("_Color",new t.math.Color().setFromArray(void 0===a?[1,1,1,1]:a))},o.render=function(t){e.prototype.render.call(this,t),this.renderer.texture.uploadCurrentVideoFrame()},o.onUpdate=function(i){e.prototype.onUpdate.call(this,i);var o,n,r=this.item,a=r.time,s=r.duration,u=r.endBehavior,d=r.composition;t.assertExist(d);var c=d.rootItem,l=c.endBehavior,A=c.duration,p=0===a||d.time===A||Math.abs(a-s)<=this.threshold;!(a>0)||p||this.played||this.playVideo(),!(a+this.threshold>=s)||u!==t.spec.EndBehavior.freeze||(null==(o=this.video)?void 0:o.paused)||this.pauseVideo(),!(d.time+this.threshold>=A)||(l===t.spec.EndBehavior.freeze?(null==(n=this.video)?void 0:n.paused)||this.pauseVideo():l===t.spec.EndBehavior.restart&&this.setCurrentTime(0))},o.getDuration=function(){return this.video?this.video.duration:0},o.getCurrentTime=function(){return this.video?this.video.currentTime:0},o.setCurrentTime=function(e){this.video&&(this.video.currentTime=e)},o.setLoop=function(e){this.video&&(this.video.loop=e)},o.setMuted=function(e){this.video&&this.video.muted!==e&&(this.video.muted=e)},o.setVolume=function(e){this.video&&this.video.volume!==e&&(this.video.volume=e)},o.setPlaybackRate=function(e){this.video&&this.video.playbackRate!==e&&(this.video.playbackRate=e)},o.playVideo=function(){var e=this;!this.played&&this.video&&(this.played=!0,this.isPlayLoading=!0,this.pendingPause=!1,this.video.play().then(function(){if(e.isPlayLoading=!1,!e.played||e.pendingPause){var t;e.pendingPause=!1,e.played=!1,null==(t=e.video)||t.pause()}}).catch(function(t){e.isPlayLoading=!1,e.played=!1,e.pendingPause=!1,"AbortError"!==t.name&&e.engine.renderErrors.add(t)}))},o.pauseVideo=function(){if(this.played&&(this.played=!1),this.video){if(this.isPlayLoading){this.pendingPause=!0;return}this.video.pause()}},o.onDestroy=function(){e.prototype.onDestroy.call(this),this.played=!1,this.isPlayLoading=!1,this.pendingPause=!1,this.video&&(this.video.pause(),this.video.src="",this.video.load())},o.onDisable=function(){e.prototype.onDisable.call(this),this.isVideoActive=!1,this.pauseVideo()},o.onEnable=function(){e.prototype.onEnable.call(this),this.isVideoActive=!0,this.playVideo()},i}(t.MaskableGraphic),e.VideoComponent=s([t.effectsClass(t.spec.DataType.VideoComponent)],e.VideoComponent);var E=function(){function e(e,i){this.engine=e,this.audioSourceInfo={},this.pendingOffset=0,this.isSupportAudioContext=!!window.AudioContext,this.options={endBehavior:t.spec.EndBehavior.destroy,duration:0},this.destroyed=!1,this.started=!1,this.initialized=!1,this.currentVolume=1,i&&this.setAudioSource(i)}var i=e.prototype;return i.setAudioSource=function(e){if((this.audio||this.audioSourceInfo.source)&&this.dispose(),function e(t,i){return null!=i&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](t):e(t,i)}(e,AudioBuffer)){var t=new AudioContext,i=t.createGain();i.connect(t.destination);var o=t.createBufferSource();o.buffer=e,o.connect(i),this.audioSourceInfo={source:o,audioContext:t,gainNode:i}}else this.audio=e;this.started&&this.play()},i.getCurrentTime=function(){if(!this.isSupportAudioContext)return(null==(e=this.audio)?void 0:e.currentTime)||0;var e,t=this.audioSourceInfo.audioContext;return(null==t?void 0:t.currentTime)||0},i.setCurrentTime=function(e){var t=Math.max(0,e);if(this.isSupportAudioContext){var i=this.options.duration&&this.options.duration>0?this.options.duration:void 0;this.pendingOffset=i?Math.min(t,i):t;return}if(this.audio){var o=Number.isFinite(this.audio.duration)?this.audio.duration:void 0;this.audio.currentTime=o?Math.min(t,o):t}},i.play=function(){var e=this;if(this.isSupportAudioContext){var i,o,n,r,a=this.audioSourceInfo,s=a.audioContext,u=a.source,d=a.gainNode;if(!s||!d)return;var c=null==u?void 0:u.buffer;if(!c)return;var l=this.options.duration&&this.options.duration>0?this.options.duration:c.duration;try{null==u||u.stop()}catch(e){}var A=s.createBufferSource();A.buffer=c,A.connect(d),A.playbackRate.value=null!=(i=null==u?void 0:u.playbackRate.value)?i:1,this.options.endBehavior===t.spec.EndBehavior.restart?(A.loop=!0,A.loopStart=0,A.loopEnd=l):(A.loop=null!=(o=null==u?void 0:u.loop)&&o,A.loopStart=null!=(n=null==u?void 0:u.loopStart)?n:0,A.loopEnd=null!=(r=null==u?void 0:u.loopEnd)?r:l),this.audioSourceInfo.source=A,"suspended"===s.state&&s.resume().catch(function(t){return e.engine.renderErrors.add(t)});try{A.start(0,this.pendingOffset||0),this.pendingOffset=0,this.started=!0}catch(e){this.engine.renderErrors.add(e)}}else this.audio&&(this.audio.loop=this.options.endBehavior===t.spec.EndBehavior.restart,this.audio.play().catch(function(t){return e.engine.renderErrors.add(t)}),this.started=!0)},i.pause=function(){if(this.isSupportAudioContext){var e,t=this.audioSourceInfo,i=t.source,o=t.audioContext;o&&o.currentTime>0&&this.started&&(null==i||i.stop())}else null==(e=this.audio)||e.pause()},i.setVolume=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.gainNode;t&&(t.gain.value=e,this.currentVolume=e)}else this.audio&&(this.audio.volume=e,this.currentVolume=e)},i.setPlaybackRate=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.source;t&&(t.playbackRate.value=e)}else this.audio&&(this.audio.playbackRate=e)},i.setLoop=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.source;t?t.loop=e:this.engine.renderErrors.add(Error("Audio source is not found."))}else this.audio&&(this.audio.loop=e)},i.setOptions=function(e){this.initialized||(this.options=e,this.initialized=!0)},i.setMuted=function(e){if(this.isSupportAudioContext){var t=this.audioSourceInfo.gainNode,i=e?0:this.currentVolume;t&&(t.gain.value=i)}else this.audio&&(this.audio.muted=e)},i.dispose=function(){var e,t=this;if(!this.destroyed){if(this.isSupportAudioContext){var i=this.audioSourceInfo,o=i.audioContext,n=i.source;this.started&&(null==n||n.stop()),null==o||o.close().catch(function(e){t.engine.renderErrors.add(e)})}else null==(e=this.audio)||e.pause();this.destroyed=!0}},e}();e.AudioComponent=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.isPlaying=!1,t}a(t,e);var i=t.prototype;return i.onAwake=function(){var t,i,o,n=this;e.prototype.onAwake.call(this),null==(t=this.item.composition)||t.on("play",function(e){n.audioPlayer.setMuted(!1),n.item.time<=0||(n.audioPlayer.setCurrentTime(n.item.time),n.audioPlayer.play(),n.isPlaying=!0)}),null==(i=this.item.composition)||i.on("pause",function(){n.audioPlayer.setMuted(!0),n.audioPlayer.pause(),n.isPlaying=!1}),null==(o=this.item.composition)||o.on("goto",function(e){n.audioPlayer.setMuted(!0),n.audioPlayer.setCurrentTime(n.item.time)})},i.onUpdate=function(t){e.prototype.onUpdate.call(this,t);var i=this.item,o=i.time,n=i.duration,r=i.endBehavior;o>0&&!1==this.isPlaying&&(this.audioPlayer.play(),this.isPlaying=!0),this.audioPlayer.setOptions({duration:n,endBehavior:r})},i.fromData=function(t){e.prototype.fromData.call(this,t);var i=t.options,o=i.playbackRate,n=i.muted,r=i.volume,a=void 0;i.audio&&(a=this.engine.findObject(i.audio).data),this.audioPlayer=new E(this.engine,a),this.audioPlayer.pause(),this.setPlaybackRate(void 0===o?1:o),this.setMuted(void 0!==n&&n),this.setVolume(void 0===r?1:r)},i.setAudioSource=function(e){this.audioPlayer.setAudioSource(e)},i.setVolume=function(e){this.audioPlayer.setVolume(e)},i.getCurrentTime=function(){return this.audioPlayer.getCurrentTime()},i.setMuted=function(e){this.audioPlayer.setMuted(e)},i.setLoop=function(e){this.audioPlayer.setLoop(e)},i.setPlaybackRate=function(e){this.audioPlayer.setPlaybackRate(e)},i.onDisable=function(){e.prototype.onDisable.call(this),this.audioPlayer.pause()},i.dispose=function(){e.prototype.dispose.call(this),this.audioPlayer.dispose()},t}(t.RendererComponent),e.AudioComponent=s([t.effectsClass(t.spec.DataType.AudioComponent)],e.AudioComponent);var S="2.7.4";t.registerPlugin("video",b,t.VFXItem),t.registerPlugin("audio",P,t.VFXItem),t.logger.info("Plugin multimedia version: "+S+"."),S!==i.version&&console.error("注意:请统一 Multimedia 插件与 Player 版本,不统一的版本混用会有不可预知的后果!","\nAttention: Please ensure the Multimedia plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!"),e.AudioPlayer=E,e.MultimediaError=g,e.checkAutoplayPermission=function(){return y.apply(this,arguments)},e.loadAudio=v,e.multimediaErrorDisplayMessageMap={2e3:"音视频自动播放权限未开启"},e.multimediaErrorMessageMap=p,e.processMultimedia=h,e.version=S,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
8
8
|
//# sourceMappingURL=index.min.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects player multimedia plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 云垣
|
|
6
|
-
* Version: v2.7.
|
|
6
|
+
* Version: v2.7.4
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -1117,7 +1117,7 @@ AudioComponent = __decorate([
|
|
|
1117
1117
|
|
|
1118
1118
|
/**
|
|
1119
1119
|
* 插件版本号
|
|
1120
|
-
*/ var version = "2.7.
|
|
1120
|
+
*/ var version = "2.7.4";
|
|
1121
1121
|
registerPlugin("video", VideoLoader, VFXItem);
|
|
1122
1122
|
registerPlugin("audio", AudioLoader, VFXItem);
|
|
1123
1123
|
logger.info("Plugin multimedia version: " + version + ".");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-plugin-multimedia",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
4
4
|
"description": "Galacean Effects player multimedia plugin",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"registry": "https://registry.npmjs.org"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@galacean/effects": "2.7.
|
|
31
|
+
"@galacean/effects": "2.7.4"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"dev": "vite",
|