Add Telemetry to know how many autoplay media, which has been resumed from blocked, played more than 7 secs
Categories
(Core :: Audio/Video: Playback, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(3 files, 1 obsolete file)
This bug will add telemetry to know how many autoplay media, which has been blocked by autoplay policy before, played more than 7 secs, after it allowed to play from blocked status.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
"blocked" event is used for blocking autoplay. The AudioChannelAgentBlockedPlay()
returns true when
we lost audio focus on Android, so actually we don't need to dispatch "blocked" event.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
In order to get the correct measurement of the total played time, we should modify the way we use mPlayTime
.
(1) mPlayTime
should be paused when entering the bf-cache if it has been started
(2) mPlayTime
should be restarted again when leaving the bf-cache if the media element is playing
(3) mPlayTime
should be reset if media element abort the current load
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/adb554a755e5
https://hg.mozilla.org/mozilla-central/rev/0a003a54ff45
Description
•