mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Resume from suspended audiocontext
This commit is contained in:
parent
26c791cacb
commit
1d6cef3fa4
|
|
@ -447,6 +447,10 @@ export class AppRdioScannerComponent implements OnDestroy, OnInit {
|
|||
}
|
||||
|
||||
if (this.audioContext) {
|
||||
if (this.audioContext.state === 'suspended') {
|
||||
this.audioContext.resume();
|
||||
}
|
||||
|
||||
this.audioContext.resume().then(() => {
|
||||
events.forEach((event) => document.body.removeEventListener(event, bootstrap));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue