fix: Play()时重置num=0,修复连续播报只播第一个音效的bug
This commit is contained in:
@@ -42,6 +42,7 @@ function audioMp3(mp3List) {
|
|||||||
mp3.auto_play = false
|
mp3.auto_play = false
|
||||||
mp3.loop = false
|
mp3.loop = false
|
||||||
mp3.Play = function () {
|
mp3.Play = function () {
|
||||||
|
num = 0
|
||||||
if (this.mp3List[0]) {
|
if (this.mp3List[0]) {
|
||||||
sourceElement.src = getBlob(this.mp3List[0])
|
sourceElement.src = getBlob(this.mp3List[0])
|
||||||
sourceElement.type = "audio/mpeg"
|
sourceElement.type = "audio/mpeg"
|
||||||
|
|||||||
Reference in New Issue
Block a user