Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ public void add(Video video) {
stripPrevItem();
}

/**
* Adds a video to the end of the playlist without interrupting the current video.
*
* @param video to be added to the playlist.
*/
public void addToQueue(Video video) {
if (Video.isEmpty(video)) {
return;
}

if (!mPlaylist.contains(video)) {
mPlaylist.add(video);
}
}

public void next(Video video) {
if (Video.isEmpty(video)) {
return;
Expand Down
Loading