Newpipe: Mute button

Created on 17 Dec 2019  路  22Comments  路  Source: TeamNewPipe/NewPipe

[Add in v0.19.0] It would be amazing if you could put a button to mute the app regardless of the volume of the smartphone, similar to what it has in MX Player, for example. This function would be sensational.

enhancement player

Most helpful comment

@RickyM7 since it would be a feature used very rarely by just a few users it would be better to add it to the dot menu, IMO

I gave it a try. It doesn't look cluttered. What you think?
Screenshot_1582498746
Screenshot_1582498750
Screenshot_1582499038

All 22 comments

I would like to take this one. Is it ok?

@karkaminski I don't know if I understand, because English is not my main language, but if you add this function to NewPipe, I would find it wonderful!

@karkaminski I think you can take it. But I'm not sure how this could be implemented without cluttering the GUI by adding a button that would be used rarely. @TobiGr what do you think?

Maybe adding this button to the upper drawer would be good?

image

I thought about that, too, but how would it behave? Would its value be reset every time the video is opened or would the previous state be restored?

In my opinion: if you mute one video, you mute for every other video (if you have queue for instance). It corresponds with second scenario you've mentioned - restore previous state.
Other questions are:

  1. What after reloading whole app?
  2. What when you muted the video, and after that picked "backgroud mode" or "popup window"?
    For popup I would keep it muted. Not sure if for backgroud should be the same. Maybe dialogbox asking if you want to unmute? I think it is a rare situation when one would like to have muted video in the background... ;)

About the queue, as you said, the previous state should be restored.

  1. After the whole app is reloaded, I'd reset the state to "Not muted". It would be strange if one used NewPipe always muted, so resetting upon restart seems a good choice.
  2. The "Muted" state only makes sense in main and popup players, and since this is obvious, I don't think a dialogbox is needed.

By the way, the button should be accessible from the popup player queue, otherwise how would one mute/unmute the popup player? Also, the plan with players is #2907, so it is a good idea to add buttons to queue views.

  1. The "Muted" state only makes sense in main and popup players, and since this is obvious, I don't think a dialogbox is needed.

So, if user watches muted video, and use background option -> video should gone to background and unmuted ?

Yes. Then, if the user goes back to main/popup player, the video should become muted again.

For some reasons I would mutate and use a muted background queue for a long time, so it would be nice if the button was implemented when playing a background playlist as well, and keep mutating as much as one wants, even if the queue in the background, completely mute. Since I'm not a programmer, I don't know how hard it is to implement something like that, but I hope you can do that. (Sorry for my bad English, I'm using Google translate to translate.)

Mmmh ok, then I assume adding a button to the background queue should be good @karkaminski.
@TobiGr what do you think about all of this?

I am still working on this, but I get some doubts... :)

I've added "mute-button" in 2 places currently:

  1. In main player upper drawer (pic below)
    image
    image
  2. In background player's menu in notification drawer
    image
    image

Using "mute" funcion, user mutes the music chanel in Android:
image

Is this approach we are looking for?

@karkaminski I liked the position of the buttons, however, muting the music channel is not what I expected. I was thinking of something like muting the app's audio regardless of the Android music channel, as you can see in Mx Player when you disable the option to synchronize the volume of the sound with the system volume, for example. So you could leave a muted list playing in the background while you listen to other things in another app or watch a muted video on Newpipe while listening to music with another app in the background. I don't know if you could understand what I meant because of my English, but I hope so. I also hope that what I said is possible to do.

should I open another issue for 'mute by default?'

Sorry for delay guys.
I've implemented mute button in some places. I am wondering where else i should put it, so any advice/suggestions would be much appreciated. Check below screenshots. White icon = video is muted.

  1. Main player
    Screenshot_1582480302
    Screenshot_1582480331
  2. Background player
    Screenshot_1582480649
  3. Popup player. I put mute-button just in notification drawer. I think there is to little place to put it there.
    Screenshot_1582480695

@karkaminski: Do not put it in notifications, as we'll move to Android's standard media notifications, where that won't be possible, see #1660.

@karkaminski For me it's great, but if it won't work if it is in the notifications, as the friend said above, then I think you could add the mute button directly in that part where we control the list in the background. Anywhere in that area marked in orange the mute button would be fine.
IMG_20200223_153737

@RickyM7 since it would be a feature used very rarely by just a few users it would be better to add it to the dot menu, IMO

@Stypox It will indeed be a rarely used feature, but it is still a good one. And for me I think that it doesn't matter where the button is, as long as it works, whether in notifications or anywhere else. I don't know if I could understand what I meant in the previous message or this one, but in summary, I am excited about the progress I saw. (Sorry for my bad English.)

@RickyM7 since it would be a feature used very rarely by just a few users it would be better to add it to the dot menu, IMO

I gave it a try. It doesn't look cluttered. What you think?
Screenshot_1582498746
Screenshot_1582498750
Screenshot_1582499038

@karkaminski In my opinion, this is wonderful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hunter9888x picture Hunter9888x  路  3Comments

cool-student picture cool-student  路  3Comments

probonopd picture probonopd  路  3Comments

cavemandaveman picture cavemandaveman  路  3Comments

B0pol picture B0pol  路  3Comments