mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 08:33:00 -06:00
Should not be able to play a call from search pane if play is paused
This commit is contained in:
parent
2489a5a490
commit
2a717b7afb
|
|
@ -193,26 +193,28 @@ export class AppRadioService implements OnDestroy {
|
|||
play(call?: RadioCall): void {
|
||||
this._configureAudio();
|
||||
|
||||
if (call) {
|
||||
if (call.audio) {
|
||||
if (this._call.current) {
|
||||
this._call.queue.unshift(call);
|
||||
if (!this._paused) {
|
||||
if (call) {
|
||||
if (call.audio) {
|
||||
if (this._call.current) {
|
||||
this._call.queue.unshift(call);
|
||||
|
||||
this.skip(true);
|
||||
this.skip(true);
|
||||
|
||||
} else {
|
||||
this._call.current = call;
|
||||
} else {
|
||||
this._call.current = call;
|
||||
|
||||
this._audio.src = call.audio;
|
||||
this._audio.load();
|
||||
this._audio.src = call.audio;
|
||||
this._audio.load();
|
||||
}
|
||||
}
|
||||
|
||||
} else if (!this._call.current && this._call.queue.length && !this._paused) {
|
||||
this._call.current = this._call.queue.shift();
|
||||
|
||||
this._audio.src = this._call.current.audio;
|
||||
this._audio.load();
|
||||
}
|
||||
|
||||
} else if (!this._call.current && this._call.queue.length && !this._paused) {
|
||||
this._call.current = this._call.queue.shift();
|
||||
|
||||
this._audio.src = this._call.current.audio;
|
||||
this._audio.load();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue