@realsee/vreo 1.0.0-alpha.21 → 1.0.0-alpha.22
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.
|
@@ -64,9 +64,11 @@ function BgMusic() {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
duration = end - start;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
audio.addEventListener('ended', cleanAudio); // 音频加载会有时间,所以不通过这种方式停止,而是等播完停止
|
|
68
|
+
// timeoutIdRef.current = setTimeout(() => {
|
|
69
|
+
// cleanAudio()
|
|
70
|
+
// }, duration)
|
|
71
|
+
|
|
70
72
|
controller.once('paused', function () {
|
|
71
73
|
cleanAudio();
|
|
72
74
|
});
|