惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

侠客岛

折纸v24.06.18解锁高级版 海量折纸教程 工具站,新增磁力搜索 一二音乐 - 音乐播放器(Android 原生) 音乐cms正在开发,APP基于flutter 分享牛逼的工作流 推荐 开源壁纸站程序 苹果cms 无广告解密player.js 全面展开音乐cms开发,功能建议 【每日60s】2026-05-12 岛链 —— 一个去中心化博客系统,开源预热 【每日60s】2026-05-11 列表滚动穿透问题 【每日60s】2026-05-10 逍遥游,现在慢慢接上网易云等功能 【每日60s】2026-05-09 chatbox分享 逍遥乐小vue开源 【每日60s】2026-05-08 【每日60s】2026-05-07 量产的牛马 逍遥乐 - 音乐播放器(vue3开源) 试试全栈云盘的视频直链 ocr识别,qwen大模型调用 Rhex如何手动下载Github仓库更新 chatgpt image2生成的海报图,真不错 tts语音合成,语音克隆demo,自己部署千问大模型 全球影视+外链网盘+AI服务+API接口+网页工具 【每日60s】2026-05-01 【每日60s】2026-04-30 ai公益生图 【每日60s】2026-04-29 【每日60s】2026-04-28
播放器问题
书白 · 2026-05-10 · via 侠客岛

技术实现摘录

音频全局单例 + 请求竞态控制

js

// audio.js - 全局唯一 Audio 实例 let audioInstance = null export const getAudio = () => audioInstance || (audioInstance = new Audio()) // music.js - playRequestId 递增丢弃过期请求 let playRequestId = 0 async function playFromQueue(index) { const rid = ++playRequestId stopAudio() loading.value = true const data = await fetchAPI({ type: 'json', ids: song.id }) if (rid !== playRequestId) return // 后面的请求已覆盖,丢弃本次 audio.src = data.url audio.play() }