Closed
Bug 1200208
Opened 9 years ago
Closed 9 years ago
Tab audio indicator doesn't show up on the huffingtonpost Parkersburg article
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
VERIFIED
FIXED
mozilla43
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
Assignee | ||
Comment 1•9 years ago
|
||
This happens because the page calls .play() on the video element before it has its metadata loaded, so HasAudio() returns false when we register the audio channel agent and we end up not emitting the audio-playback notification. We need to deal with HasAudio() changing correctly in MetadataLoaded.
Component: Tabbed Browser → Audio/Video
Product: Firefox → Core
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8654943 -
Flags: review?(amarchesini)
Comment 3•9 years ago
|
||
Comment on attachment 8654943 [details] [diff] [review] Send the audio-playback notification when the page calls HTMLMediaElement::Play() before the metadata has been fully loaded Review of attachment 8654943 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/html/HTMLMediaElement.cpp @@ +4519,5 @@ > +{ > + if (!mAudioChannelAgent) { > + nsresult rv; > + mAudioChannelAgent = do_CreateInstance("@mozilla.org/audiochannelagent;1", &rv); > + if (!mAudioChannelAgent) { we should actually use 'rv' here. something like: if (NS_WARN_IF(NS_FAILED(rv))) { return false; } MOZ_ASSERT(mAudioChannelAgent); ::: dom/html/HTMLMediaElement.h @@ +58,5 @@ > > class nsITimer; > class nsRange; > class nsIRunnable; > +class AutoNotifyAudioChannelAgent; alphabetic order. @@ +1049,5 @@ > void UpdateReadyStateInternal(); > > // Notifies the audio channel agent when the element starts or stops playing. > void NotifyAudioChannelAgent(bool aPlaying); > + friend class AutoNotifyAudioChannelAgent; move this at the beginning of the class definition.
Attachment #8654943 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8654943 [details] [diff] [review] Send the audio-playback notification when the page calls HTMLMediaElement::Play() before the metadata has been fully loaded Approval Request Comment [Feature/regressing bug #]: Tab audio indicator feature polish [User impact if declined]: See comment 0. The audio indicator may not appear on some websites that play audio. [Describe test coverage new/current, TreeHerder]: Tested locally and has automated tests. [Risks and why]: Pretty self-contained change, should not be very risky. [String/UUID change made/needed]: None.
Attachment #8654943 -
Flags: approval-mozilla-aurora?
Comment 6•9 years ago
|
||
Backed out for Windows bustage. https://treeherder.mozilla.org/logviewer.html#?job_id=13504562&repo=mozilla-inbound https://hg.mozilla.org/integration/mozilla-inbound/rev/faa1e553d63a
Comment 10•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e90965135940
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Updated•9 years ago
|
status-firefox42:
--- → affected
Comment 11•9 years ago
|
||
Comment on attachment 8654943 [details] [diff] [review] Send the audio-playback notification when the page calls HTMLMediaElement::Play() before the metadata has been fully loaded Polish a new feature, taking it.
Attachment #8654943 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 13•9 years ago
|
||
Verified fixed using latest Nightly 43.0a1 (buildID: 20150913030204) and latest Aurora 42.0a2 (buildID: 20150914004020).
You need to log in
before you can comment on or make changes to this bug.
Description
•