fix: prevent concurrent frame fetching in VideoEngine

Added a flag to manage the fetching state of video frames in the VideoEngine class. This change ensures that the updateNextFrame method does not attempt to fetch new frames while a previous fetch is still in progress, preventing potential race conditions and improving stability during playback.
This commit is contained in:
Harvey Zhao committed 2026-01-01 17:32:21 +08:00
1 parent 9d760a2f59
commit d892685a25
4 files changed
+114 -101

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
const art = new Artplayer({
container: '.artplayer-app',
url: 'https://artplayer.org/assets/sample/frag_bunny.mp4',
autoSize: false,
autoSize: true,
screenshot: true,
setting: true,
loop: true,