V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
JokerLiang

IOS17 浏览器 使用 AudioContext.createMediaElementSource(audio) Bug(加上这一行就不播放声音了), IOS16 正常

  •  
  •   JokerLiang · Sep 22, 2023 · 1590 views
    This topic created in 948 days ago, the information mentioned may be changed or developed.
    const autio = xxxxx
    
    audio.play()
    
    // 只要加上这一句话,就不正常,具体表现为,没声音,但是 audioContext 控件播放状态是正在播放,进度条一直为 0 ,不管是放在 play() 之前还是之后
    const source = context.createMediaElementSource(audio);
    
    1 replies    2023-09-22 19:40:19 +08:00
    subframe75361
        1
    subframe75361  
       Sep 22, 2023
    试试 createBufferSource
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4715 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.