This commit is contained in:
Daniel Ponte 2025-01-05 11:42:29 -05:00
parent 8363b26922
commit 0821fc4422
2 changed files with 24 additions and 1 deletions

View file

@ -31,7 +31,11 @@ export class CallPlayerComponent {
}); });
this.playing = true; this.playing = true;
this.au.src = this.callsSvc.callAudioURL(this.call.id); this.au.src = this.callsSvc.callAudioURL(this.call.id);
console.log(this.au.src);
this.au.load(); this.au.load();
this.au.play(); this.au.play().then(null, (reason) => {
this.playing = false;
alert(reason);
});
} }
} }

View file

@ -0,0 +1,19 @@
<!doctype html>
<html lang="en" data-theme="dark">
<head>
<meta charset="utf-8" />
<title>Stillbox</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#1976d2" />
<meta http-equiv="Content-Security-Policy" content="media-src *" />
</head>
<body>
<app-root></app-root>
<noscript
>Please enable JavaScript to continue using this application.</noscript
>
</body>
</html>