From c172fdf999d1592080b46fccf505e636e1800ecd Mon Sep 17 00:00:00 2001 From: wancheng <25022549@qq.com> Date: Thu, 27 Mar 2025 18:21:52 +0800 Subject: [PATCH] Update 2x2-demo.html --- demo/public/pro/2x2-demo.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demo/public/pro/2x2-demo.html b/demo/public/pro/2x2-demo.html index 681e2c70..ee7733d0 100644 --- a/demo/public/pro/2x2-demo.html +++ b/demo/public/pro/2x2-demo.html @@ -250,7 +250,8 @@ var id = i + 1; var $playHref = document.getElementById('playUrl' + id); let player = playList[i]; - if ($playHref.value) { + const url = $playHref.value; + if (url) { setTimeout((url) => { console.log(url); player && player.play(url).then(() => { @@ -258,7 +259,7 @@ }).catch((e) => { console.error(e); }); - }, 0, $playHref.value) + }, 0, url) } }