@ruck-plugins/ffmpeg-tools 1.0.0 → 1.1.0

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/preload.js DELETED
@@ -1,21 +0,0 @@
1
- /**
2
- * Ruck Preload Script for ffmpeg-tools
3
- */
4
-
5
- // 监听插件进入事件
6
- if (window.ruck && typeof window.ruck.onPluginEnter === 'function') {
7
- window.ruck.onPluginEnter(({ type, payload }) => {
8
- window.dispatchEvent(new CustomEvent('ruck-ffmpeg-tools-enter', {
9
- detail: { type, payload }
10
- }));
11
- });
12
- }
13
-
14
- // 监听插件退出
15
- if (window.ruck && typeof window.ruck.onPluginOut === 'function') {
16
- window.ruck.onPluginOut((processExit) => {
17
- if (processExit) {
18
- console.log('ffmpeg-tools is being destroyed');
19
- }
20
- });
21
- }