puter icon indicating copy to clipboard operation
puter copied to clipboard

Play the Puter chime at startup

Open Zac0511 opened this issue 1 year ago • 3 comments

It would be cool if the Puter chime was played at Puter's startup.

Of course, the user could disable it from the personalization menu in settings if they don't want it.

Here's what it could look like if that feature was added :

https://github.com/user-attachments/assets/797a3346-347e-461a-ae33-ff745d9975b6

(make sure you enabled sound on the video)

Zac0511 avatar Oct 02 '24 16:10 Zac0511

I love this! How did you manage to play the chime without clicking? That's our only issue right now!

jelveh avatar Oct 03 '24 02:10 jelveh

I love this! How did you manage to play the chime without clicking? That's our only issue right now!

Well i just recorded a video of me opening Puter and I added the sound afterwards with editing, just to show what it could look like if the feature was in Puter. But i do know that sound can't play if the user have not clicked inside, and i don't know how it could work.

Zac0511 avatar Oct 03 '24 05:10 Zac0511

We talked about having this play after manual login since a dom event can be triggered for that. Otherwise, we just won't play a sound (browser won't let us without a click). This is a good task for a new contributor, so I'm going to wait and see if anyone else wants to take it on.

KernelDeimos avatar Oct 10 '24 07:10 KernelDeimos

Hey @KernelDeimos, I'd like to take a look into this issue. could you please assign this to me ? Also do you have any specific chime to implement ?

4nshuman avatar Oct 20 '24 06:10 4nshuman

Hey @KernelDeimos, I'd like to take a look into this issue. could you please assign this to me ? Also do you have any specific chime to implement ?

Sure thing! The chime is at: src/gui/src/audio/puter_chime.mp3

Keep in mind, there's slightly annoying issue you'll encounter where audio is not allowed to play until the user clicks something. For this reason, we can only really support a good experience with it when the user starts at the login page and clicks "login".

There's a new "welcome screen", we could also maybe play it there in situations where the chime hasn't already been played at that point. There might be other good situations for it, let us know if you come up with something else.

KernelDeimos avatar Oct 20 '24 06:10 KernelDeimos

@4nshuman hi, are you still working on this?

KernelDeimos avatar Nov 06 '24 20:11 KernelDeimos

Hey @KernelDeimos,

Yup I'm still on it. Actually I was tinkering with a couple of solutions to try and play the sound as soon as everything loads up on the page rather than the first user interaction. I have had some success but still experimenting.

4nshuman avatar Nov 07 '24 05:11 4nshuman

hey @KernelDeimos, I've raised a PR, could you please take a look.

4nshuman avatar Nov 09 '24 10:11 4nshuman

Just noticed it got actually added, i'm closing this issue

Zac0511 avatar Mar 29 '25 14:03 Zac0511