2017-09-05 21:27:12 +02:00
|
|
|
package org.schabi.newpipe.playlist;
|
|
|
|
|
|
|
|
import org.schabi.newpipe.extractor.stream.StreamInfo;
|
2017-11-02 06:33:13 +01:00
|
|
|
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
|
2017-09-05 21:27:12 +02:00
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
|
|
|
public final class SinglePlayQueue extends PlayQueue {
|
2017-11-02 06:33:13 +01:00
|
|
|
public SinglePlayQueue(final StreamInfoItem item) {
|
|
|
|
this(new PlayQueueItem(item));
|
|
|
|
}
|
|
|
|
|
2017-09-25 05:14:58 +02:00
|
|
|
public SinglePlayQueue(final StreamInfo info) {
|
2017-11-02 06:33:13 +01:00
|
|
|
this(new PlayQueueItem(info));
|
|
|
|
}
|
|
|
|
|
|
|
|
private SinglePlayQueue(final PlayQueueItem playQueueItem) {
|
|
|
|
super(0, Collections.singletonList(playQueueItem));
|
2017-09-05 21:27:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isComplete() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void fetch() {}
|
|
|
|
}
|