Bug 140524 - HTMLMediaElement::isPlayingAudio() returns true even when the element is explicitly muted by script
Summary: HTMLMediaElement::isPlayingAudio() returns true even when the element is expl...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ada Chan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-01-15 16:03 PST by Ada Chan
Modified: 2015-01-19 10:51 PST (History)
1 user (show)

See Also:


Attachments
Patch (6.04 KB, patch)
2015-01-16 16:25 PST, Ada Chan
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ada Chan 2015-01-15 16:03:45 PST
If the media element is explicitly muted in the DOM, we should not classify it as "playing audio".

For example, there are websites that use a muted video to display an animated background, and that video element should be treated as "not playing audio".

<rdar://problem/18644403>
Comment 1 Ada Chan 2015-01-16 16:25:01 PST
Created attachment 244817 [details]
Patch
Comment 2 Andreas Kling 2015-01-17 18:53:05 PST
Comment on attachment 244817 [details]
Patch

r=me
Comment 3 Ada Chan 2015-01-19 10:51:29 PST
Thanks Andreas!

Committed:
http://trac.webkit.org/changeset/178655