[Webkit-unassigned] [Bug 75154] 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 21:49:19 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=75154





--- Comment #1 from Eric Carlson <eric.carlson at apple.com>  2011-12-22 21:49:19 PST ---
(In reply to comment #0)
> 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.

Read the spec please! Open http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#concept-media-load-algorithm, read the section starting with "Otherwise, the source elements will 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