NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

Show Enqueue menu item even when no current video playing

Open emjas92 opened this issue 2 years ago • 9 comments

Checklist

  • [X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • [X] I'm aware that this is a request for NewPipe itself and that requests for adding a new service need to be made at NewPipeExtractor.
  • [X] I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise.
  • [X] This issue contains only one feature request.
  • [X] I have read and understood the contribution guidelines.

Feature description

Always show the "Enqueue" menu item even when there is no current video playing, like how YouTube allows you to hover a thumbnail and "add to queue" at any time.

Why do you want this feature?

I like to queue up a bunch of videos to watch all in a row. But currently I have to start playing the first video and minimise it, and then I can enqueue other videos.

Additional information

This is just for convenience to save a few seconds.

emjas92 avatar Apr 05 '22 10:04 emjas92

Related: #2611

opusforlife2 avatar Apr 08 '22 19:04 opusforlife2

@opusforlife2 How is this issue going now? If you are not working on the issue, I want to give it a try.

dtcxzyw avatar Apr 16 '22 14:04 dtcxzyw

Feel free to do it. I have not had time myself.

I suspect there's logic in the menu code that says "if a video is playing then show Enqueue option." The if condition would need to be removed.

I think the first video enqueued should load "minimised" but not start playing, to allow you to continue select videos to enqueue.

emjas92 avatar Apr 16 '22 20:04 emjas92

Which player should be selected for enqueueing videos? Are we willing to have something like multiple queues? Such functionality was possible in pre-unified versions.

SameenAhnaf avatar Apr 19 '22 07:04 SameenAhnaf

@dtcxzyw Go ahead. Also, please keep the issue I linked in mind.

opusforlife2 avatar Apr 19 '22 09:04 opusforlife2

Which player should be selected for enqueueing videos? Are we willing to have something like multiple queues?

Good questions. I think the first enqueued video should follow the "Preferred open action" and "Autoplay" settings.

For example, my settings are 'show info' and 'autoplay on WiFi' - so I'd like the first enqueued video to open in the normal Video player but minimised so that I can continue adding videos from the same list.

If there's already a different queue, e.g background player, then Enqueue should add to that queue as it currently does. Actually I don't know why there would be different queues for each player - wouldn't they all use the same queue?

emjas92 avatar Apr 19 '22 20:04 emjas92

@emjas92 @dtcxzyw Please let me know wdyt about https://github.com/TeamNewPipe/NewPipe/issues/5940#issuecomment-818051629.

Actually I don't know why there would be different queues for each player - wouldn't they all use the same queue?

Before 0.20.0, there used to be a feature for keeping background and popup queues separately alongside main player. Supose, you want to listen to music, then change your mood to watch tech videos. But you don't want to lose existing queue. This feature comes in handy. For long answer: https://github.com/TeamNewPipe/NewPipe/issues/5864#issuecomment-808785113

SameenAhnaf avatar Apr 19 '22 21:04 SameenAhnaf

@emjas92 @SameenAhnaf

I think the first video/audio enqueued should remain paused. Users can click "Start playing" if it needs to play immediately.

The current implementation enqueues the video/audio to the background queue by default. The main queue will inherit the background queue when users want to play these streams in the main player. It works fine on my device.

As for multi-queue, I don't want to address three issues in a single PR. But I am willing to try to give a solution after fixing these two issues.

dtcxzyw avatar Apr 20 '22 01:04 dtcxzyw

@emjas92 @dtcxzyw Please let me know wdyt about #5940 (comment).

Actually I don't know why there would be different queues for each player - wouldn't they all use the same queue?

Before 0.20.0, there used to be a feature for keeping background and popup queues separately alongside main player. Supose, you want to listen to music, then change your mood to watch tech videos. But you don't want to lose existing queue. This feature comes in handy. For long answer: #5864 (comment)

You have no idea how much I miss this feature. I can't click on YouTube links in places like Discord without it wanting to clear the Queue. It's browser tabs for mobile (equivalent of Open In New Tab).

Anyways, on topic. It would make using the app feel more seamless to have an "Enqueue" option always available. Think about this from the user's perspective, it's easier yo train a user to select "Enqueue" in any scenario where you're building a queue of videos. It's intuitive.

TBN-MapleWheels avatar Sep 14 '22 08:09 TBN-MapleWheels