hunk
V2EX  ›  问与答

nextjs 中操作 audio 控制的 currentTime 在 safari 中无效,有遇到过没?

  •  
  •   hunk · May 28, 2022 · 1929 views
    This topic created in 1551 days ago, the information mentioned may be changed or developed.
    需求简单,将音频文件的播放时间存在 localstorge 看,播放时读取,并设置 currentTime.
    纯 js 操作,在 flask 使用正常。修改为 nextjs ,在 windows 下 chrome 正常,ios 和 mac os 的 safari 中都不能手动进度条。
    查资料,好像是 safari 对 autoplay 有限制。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5471 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:43 · PVG 15:43 · LAX 00:43 · JFK 03:43
    ♥ Do have faith in what you're doing.