你想反馈一个 Bug 还是 提一个需求?


如果是 Bug:Bug


* Bug 表现是什么?预期表现是什么?


* 如何复现?

//播放声音

play: function () {

     wx.getSavedFileList({

      success: function (res) {

        var LEN = res.fileList.length

        if (LEN > 0) {

          console.log('number of files:'+LEN)

          for (var i = 0; i < LEN; i++) {

            InnerAudioContext.src = res.fileList[i].filePath;

            InnerAudioContext.play();

            console.log('File' + i + " :  " + InnerAudioContext.src)

          }

        }


        InnerAudioContext.onPlay(() => {

          console.log('onPlay()');

        });


        InnerAudioContext.onError((res) => {

          console.log(res.errMsg)

          console.log(res.errCode)

        });

      }

    })

}


* 提供一个最简复现 Demo

number of files:2

index.js? [sm]:94 File0 :  http://store/wx22fa435613e4a846.o6zAJsww-VE9mPPuvHzlEPwDQOm8.a1e62f616556cf7a33124d5db0cb211b.durationTime=10003.mp3

index.js? [sm]:94 File1 :  http://store/wx22fa435613e4a846.o6zAJsww-VE9mPPuvHzlEPwDQOm8.c209cfdbf56e82e60e2ffef07fc0b37b.durationTime=10002.mp3

index.js? [sm]:105 onPlay()


能读取到所有 音频文件名,但 只有最后一个音频文件播放出来




如果是需求:


* 你希望有什么能力?


* 你需要这个能力的场景是 ?


展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Abigail

    5人对此回答表示赞同

    我也遇到了相似的场景,亲如果解决了,请告诉我下,谢谢

    展开
    5
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部