-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
我通过
// #ifdef H5
this.audioCtx = new (window.AudioContext || window.webkitAudioContext)()
// #endif
// #ifdef MP-WEIXIN
this.audioCtx = wx.createWebAudioContext()
// #endif实现了一版同时支持H5以及微信小程序流式播放的代码,很简陋而且在每段音频切换时出现爆音,我看了作者的代码会在每段音频加入淡入淡出效果,我试了也不太行,目前以自动以缓冲区合并MP3二进制流的形式去播放,仍然无法解决频切换时出现爆音,只是延长了爆音时间间隔。
请问有没有什么办法实现微信小程序的流式播放?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels