Closed Bug 1188744 Opened 9 years ago Closed 8 years ago

[B2G] Ringtone preview stutters

Categories

(Firefox OS Graveyard :: AudioChannel, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alwu, Assigned: alwu)

References

Details

Ringtone preview can't be playback smoothly.

STR.
1. Open the setting > sound > ringtones
2. Tap any ringtone for preview

Expected.
3. Ringtone playback smoothly

Actual.
3. Ringtone preview stutters
Will take a look later.
Flags: needinfo?(evan)
Blocks: 1130350
Hi Alastor,

Looks like this might be a gecko issue. After we pick a Ringtone in Settings app, the `activestatechanged` event(from gecko) of the ringer audio channel is just triggered many times.

You can see the below log by adding the patch[1] and following the STR.
```
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_normal: true 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_normal: false 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_normal: true 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: false 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: true 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: false 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: true 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: false 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: true 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: false 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: true 
I/GeckoConsole( 1996): Content JS LOG: bug-1188744: statechanged: ActivityWindow_0_ringer: false 
```

[1]: https://github.com/evanxd/gaia/commit/ef56b7460fb44b75b43c69ebbae5d4e8f6f1f49c
Flags: needinfo?(evan)
Thanks Evan, I will check it later.
Flags: needinfo?(alwu)
Assignee: nobody → alwu
Flags: needinfo?(alwu)
Close this bug because this issue doesn't happen on the latest master.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.