callurl
This commit is contained in:
parent
cea7704778
commit
4d5dfb94cd
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,11 @@ export class CallPlayerComponent {
|
|||
this.playSub.unsubscribe();
|
||||
});
|
||||
this.playing = true;
|
||||
if (this.call.audioURL != null) {
|
||||
this.au.src = this.call.audioURL;
|
||||
} else {
|
||||
this.au.src = this.callsSvc.callAudioURL(this.call.id);
|
||||
}
|
||||
this.au.load();
|
||||
this.au.play().then(null, (reason) => {
|
||||
this.playing = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue