W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > November 2012

[Bug 20064] New: Technique used to determine support for mp4 or webm in track test is faulty

From: <bugzilla@jessica.w3.org>
Date: Fri, 23 Nov 2012 15:35:12 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-20064-2486@http.www.w3.org/Bugs/Public/>

            Bug ID: 20064
           Summary: Technique used to determine support for mp4 or webm in
                    track test is faulty
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: dave.null@w3.org
          Reporter: graouts@apple.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org

See the test at
It contains the following code to determine the <video> src to be used on line

video.src = '../../resources/media/sunflower.' +
(video.canPlayType('video/webm') ? 'webm' : 'mp4');

This isn't a very robust approach as .canPlayType('video/webm') returns "maybe"
on a WebKit nightly when webm is not actually supported, but the string "maybe"
evaluates to "true" as a JS condition, and thus the WebM file is used. The test
should be rewritten such that it either:

1. uses <source> elements to let the browser pick the suitable resource
2. checks that .canPlayType() returns "probably" to assume that the tested type
can be played.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 23 November 2012 15:35:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:35 UTC