[Webkit-unassigned] [Bug 44517] New: HTMLMediaElement.canPlayType gives false positives in Safari
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 24 05:28:00 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44517
Summary: HTMLMediaElement.canPlayType gives false positives in
Safari
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://beta.html5test.com/testcases/video/
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Media Elements
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: niels.leenheer at gmail.com
When a codecs parameter is provided and the MIME type is supported, canPlayType() always returns "probably" regardless of the contents of the codecs parameter. This results in false positives and makes it impossible to reliably detect codec support in Safari.
For example:
v=document.createElement('video');
v.canPlayType('video/mp4')
-> maybe // correct
v=document.createElement('video');
v.canPlayType('video/mp4; codecs="avc1.42E01E"')
-> probably // correct
v=document.createElement('video');
v.canPlayType('video/mp4; codecs="theora"')
-> probably // incorrect
v=document.createElement('video');
v.canPlayType('video/mp4; codecs="iv50"')
-> probably // incorrect
The canPlayType() function should only return "probably" when the codecs parameter represents an actually supported codec. Unknown codec parameters should return an empty string.
See also: http://rakaz.nl/2010/06/problems-with-html5-video-codec-detection.html
--
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