V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hunk
V2EX  ›  问与答

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

  •  
  •   hunk · May 28, 2022 · 1685 views
    This topic created in 1439 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   ·   909 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:53 · PVG 05:53 · LAX 14:53 · JFK 17:53
    ♥ Do have faith in what you're doing.