Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add volume and playback rate change notification feature to vid… #6473

Merged

Conversation

ikizey
Copy link
Contributor

@ikizey ikizey commented Dec 29, 2024

Pull Request Type

  • Feature Implementation

Related issue

closes #4658

Description

it adds small popup in top center of the player, when volume or playback rate is changed using shortcuts (but not ui)

Screenshots

image
image

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 29, 2024 13:59
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 29, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also use a icon for playbackspeed the same one that is used in the player controls should be fine.

Not sure about the placement would like others to chime in. Does YouTube this with volume and playback speed

firefox_OHfjnbsDIj.mp4

@ikizey
Copy link
Contributor Author

ikizey commented Dec 29, 2024

I wonder about placement too. I'd like to put it in top left corner, but stats are already there.
Not sure about icons. Idea, is '%' in the end indicate volume, and 'x' in the end indicate playback rate.
It's possible to use volumehigh/volumelow icons, but it's confusing, does it mean volume now is high/low, or volume now is higher/lower. So I made a static icon, just to indicate volume is changed.
There is no speed icon in fontawesome, that player uses. So I don't show any.

@kommunarr
Copy link
Collaborator

I think the volume low/high icons make sense to indicate down/up. Top middle placement similar to YT here makes sense because the position of these buttons is subject to change, and top middle ensures that it can catch users' attention.

@efb4f5ff-1298-471a-8973-3d47447115dc
  • I think you can put Closes behind the issue in the PR body because this does fully resolve it
  • Speed being displayed below actual minimum and above actual maximum
VirtualBoxVM_qdQIXzINZn.mp4

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Dec 29, 2024
auto-merge was automatically disabled December 29, 2024 17:22

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 29, 2024 17:22
@ikizey
Copy link
Contributor Author

ikizey commented Dec 29, 2024

I placed message in top middle.
Fixed value shown for playback rate.

auto-merge was automatically disabled December 29, 2024 17:42

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 29, 2024 17:42
@ikizey
Copy link
Contributor Author

ikizey commented Dec 29, 2024

Volume icon now shows if volume become higher/lower or muted.

@kommunarr
Copy link
Collaborator

This is awesome! Minor notes:

suggestion (blocking): Show mute / current volume popup on mute/unmute with m key.

suggestion (blocking): Show mute icon in popup instead of the volume low icon when using volume down shortcut and hitting 0. Currently, it shows volume low icon when it reaches zero, and you have to press it again to show the mute icon.

nitpick: Don't show trailing zeroes in playback rate popup (e.g., 2.00x). This can be done by calling toString() on it, IIRC.

auto-merge was automatically disabled December 29, 2024 20:40

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 29, 2024 20:40
@ikizey
Copy link
Contributor Author

ikizey commented Dec 29, 2024

suggestion (blocking): Show mute / current volume popup on mute/unmute with m key.

done

suggestion (blocking): Show mute icon in popup instead of the volume low icon when using volume down shortcut and hitting 0. Currently, it shows volume low icon when it reaches zero, and you have to press it again to show the mute icon.

fixed

nitpick: Don't show trailing zeroes in playback rate popup (e.g., 2.00x). This can be
done by calling toString() on it, IIRC.

I did this on purpose. Otherwise if you have step eq. 0.25 and hold o/p values will "jump" inside message.

something like this
| 1.25x |
| 1x |
| 0.75x |
| 0.5x |
now it's like this
| 1.25x |
| 1.00x |
| 0.75x |
| 0.50x |

kommunarr
kommunarr previously approved these changes Dec 29, 2024
@efb4f5ff-1298-471a-8973-3d47447115dc

nitpick: It doesn't fade out elegantly like the player controls. Is it possible to make it do that

VirtualBoxVM_JAWqHudP8y.mp4

@kommunarr
Copy link
Collaborator

FWIW, YT also has no transition for it.

auto-merge was automatically disabled December 29, 2024 23:54

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 29, 2024 23:54
Copy link
Collaborator

@kommunarr kommunarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would love to have something like this for toasts while in FS / FW 👀

@FreeTubeBot FreeTubeBot merged commit b01abad into FreeTubeApp:development Dec 30, 2024
10 checks passed
@checktext00
Copy link

checktext00 commented Jan 9, 2025

I also would like to say it would be nice for every single keyboard shortcut affecting the video to have HUD/OSD feedback (like for example pressing left arrow to jump backwards 5 seconds, or when enabling/disabling captions using the "C" key - YouTube has both of these)
YT_5sec_back

  • there should also be a play/pause notification when using the space bar and also when using the mouse to click the center of the video (YouTube has this)
  • it would be nice if the PIP mode supported these HUD notifications as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Scroll Volume Over Video Player show temporary HUD reflecting change
7 participants