We need a way of getting a media element's underlying media player's volume (which will be lowered when audio is ducked).
<rdar://problem/21890395>
Created attachment 257052 [details] Patch
Created attachment 257058 [details] Patch
Created attachment 257387 [details] Patch
Comment on attachment 257387 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257387&action=review > Source/WebCore/html/HTMLMediaElement.cpp:6486 > + if (m_player) > + return m_player->volume(); > + return 0; This could be more concisely stated as: return m_player ? m_player->volume() : 0;
(In reply to comment #5) > Comment on attachment 257387 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=257387&action=review > > > Source/WebCore/html/HTMLMediaElement.cpp:6486 > > + if (m_player) > > + return m_player->volume(); > > + return 0; > > This could be more concisely stated as: > > return m_player ? m_player->volume() : 0; Fixed.
Committed r187256: <http://trac.webkit.org/changeset/187256>