Closed Bug 812245 Opened 12 years ago Closed 11 years ago

[Sound] Shut Down Animation Needs a sound

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P3)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: padamczyk, Assigned: sjochimek)

References

Details

(Whiteboard: visual design, sound, UX-P3, hanzo)

Attachments

(3 files)

Waiting for the sound from the vendor
Priority: -- → P3
Whiteboard: visual design, sound → visual design, sound, interaction
Attached video Final Sound
Would be nice if the shutdown sound was sync'd with the animation.
Assignee: padamczyk → sjochimek
Whiteboard: visual design, sound, interaction → visual design, sound, UX-P3
Whiteboard: visual design, sound, UX-P3 → visual design, sound, UX-P3, uxbranch
Attached file Branch on github
Attachment #745845 - Flags: feedback?(padamczyk)
Patryk: I added a 500 delay. The sound start when the first Orange circle appears.
Tested, great! Ship it!
Whiteboard: visual design, sound, UX-P3, uxbranch → visual design, sound, UX-P3, hanzo
Attached file PR Github
Attachment #749001 - Flags: review?(timdream)
Comment on attachment 749001 [details]
PR Github

Why do you need the that 500 sec?

(set the review flag back to me when this question is answered)
Attachment #749001 - Flags: review?(timdream)
Comment on attachment 745845 [details]
Branch on github

Just tested it works perfectly.
Attachment #745845 - Flags: feedback?(padamczyk) → feedback+
Comment on attachment 749001 [details]
PR Github

Tim: We wanted this sound starts at the same time as the first orange circle appear. That explains the 500ms delay. If we don't use a delay here the sounds are played earlier, and the effect is broken.
Attachment #749001 - Flags: review?(timdream)
Comment on attachment 749001 [details]
PR Github

Hum...

1. Instead of introducing a timeout, please put the play() somewhere here:

https://github.com/samjoch/gaia/blob/793df1b47956b67a2ddc26008c54a1419d7e39c4/apps/system/js/sleep_menu.js#L279

So that the sound actually plays when the animation took place.

2. Do we really want to play that sound even with a partner shutdown video replace the default 3-ring animation?
Attachment #749001 - Flags: review?(timdream)
Tim: Even if i put the play() in that part, i still need a timeout to play the sound to keep synchronized the sound and the animation. Without the timeout the sound is played when the animation start, too soon. Maybe we can add that delay in the sound ?

Patryk: Can you take 2. ?
Flags: needinfo?(padamczyk)
> 2. Do we really want to play that sound even with a partner shutdown video
> replace the default 3-ring animation?
Since we are allowing partners to swap out the animation we should also allow them to swap out the sound as well. Both the sound and the animation should be swap-able. 

I am okay if the animation and sound are locked together as 1 component.
Flags: needinfo?(padamczyk)
Attachment #749001 - Flags: review?(timdream)
Comment on attachment 749001 [details]
PR Github

https://github.com/samjoch/gaia/blob/817a0347bbdace160cb2643d0ad82db24dadc76e/apps/system/js/sleep_menu.js#L291

As I said previously, instead of a timeout(), you should put the code in the nextAnimation() with condition checks, so the file would play at the exact time.
Attachment #749001 - Flags: review?(timdream) → review-
Comment on attachment 749001 [details]
PR Github

You are getting there!
Attachment #749001 - Flags: review-
Ok i removed the setTimeout. Patryk can you confirm is still ok ?
Flags: needinfo?(padamczyk)
Looks good, still in sync. Ship it.
Flags: needinfo?(padamczyk)
Attachment #749001 - Flags: review?(timdream)
Comment on attachment 749001 [details]
PR Github

Thank you!
Attachment #749001 - Flags: review?(timdream) → review+
The audio scares me with a large volume.
Could we lower the volume factor to 0.5 or else?

Or we should consider to change the default content/normal volume...
Blocks: 883090
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: