mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -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 {
|
play(call?: RadioCall): void {
|
||||||
this._configureAudio();
|
this._configureAudio();
|
||||||
|
|
||||||
if (call) {
|
if (!this._paused) {
|
||||||
if (call.audio) {
|
if (call) {
|
||||||
if (this._call.current) {
|
if (call.audio) {
|
||||||
this._call.queue.unshift(call);
|
if (this._call.current) {
|
||||||
|
this._call.queue.unshift(call);
|
||||||
|
|
||||||
this.skip(true);
|
this.skip(true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this._call.current = call;
|
this._call.current = call;
|
||||||
|
|
||||||
this._audio.src = call.audio;
|
this._audio.src = call.audio;
|
||||||
this._audio.load();
|
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