[Webkit-unassigned] [Bug 75154] New: Media tags should choose the best <source>, not the first MaybeSupported one.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 22 17:15:23 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=75154
Summary: Media tags should choose the best <source>, not the
first MaybeSupported one.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: Media Elements
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: fischman at chromium.org
Migrated from http://code.google.com/p/chromium/issues/detail?id=35136
Consider:
<video controls autoplay>
<source src="dirac.ogv" type='video/ogg; codecs="dirac, vorbis"' />
<source src="theora.ogv" type='video/ogg; codecs="theora, vorbis"' />
</video>
Today chromium (for example) will attempt to use the first <source> child (and fail because it doesn't include a dirac decoder).
I think the problem is in HTMLMediaElement::selectNextSourceChild where the iteration among the <source> children of <video> stops as soon as it hits a !IsNotSupported child, instead of looking for a "best" match.
Ideally if an IsSupported child follows a MayBeSupported child, the IsSupported one should be used.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list