We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6b207 commit 8f20f3fCopy full SHA for 8f20f3f
1 file changed
src/renderer/plugins/player/index.ts
@@ -65,6 +65,14 @@ export const createAudio = () => {
65
audio.autoplay = true
66
audio.preload = 'auto'
67
audio.crossOrigin = 'anonymous'
68
+ audio.addEventListener('playing', () => {
69
+ if (audioContext?.state == 'suspended') {
70
+ void audioContext.resume().catch((err) => {
71
+ console.error('Resume audio context failed:', err)
72
+ throw err
73
+ })
74
+ }
75
76
}
77
78
const initAnalyser = () => {
0 commit comments