Open Bug 1520023 Opened 6 years ago Updated 2 years ago

Remove the ability to delay autoplay media from AudioChannelService

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: alwu, Assigned: alwu)

References

Details

There are two reasons I would like to remove delay-autoplay from AudioChannel architecture.

  1. The main purporse of AudioChanngelAgent is used to notify AudioChannelAgentCallback to mute/unmute/pause/resume media while media is playing or has started playing

However, in order to achieve delay-autoplay, what we did was to register AudioChannelAgent before it actually starts, because we need to keep reference for those AudioChannelAgentCallback in order to resume them.

That made the timing to use AudioChannelAgent unclear, and made the code too complex to understand easily.

  1. If we remove delay-autoplay from the AudioChannel architecture, it would be eaiser to change delay-autoplay to Fission compatiblem, because we could not resume media in different process in current architecture if we enable Fission.
Depends on: 1524065
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.