@versa_ai/vmml-editor 1.0.35 → 1.0.36
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/.turbo/turbo-build.log +8 -8
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +8 -3
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -277,9 +277,14 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
|
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
const onWaiting = () => {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
console.log('onWaiting>>>>>>>>>>>>>>consol')
|
|
281
|
+
const { current }: any = vmmlPlayerRef;
|
|
282
|
+
const playing = current?.playerRef?.isPlaying?.() ?? false
|
|
283
|
+
if (playing) {
|
|
284
|
+
setShowCanvas(false);
|
|
285
|
+
setPreviewState(true);
|
|
286
|
+
setBuffering(true);
|
|
287
|
+
}
|
|
283
288
|
}
|
|
284
289
|
|
|
285
290
|
const onResume = () => {
|