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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20064

            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
http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/activeCues.html.
It contains the following code to determine the <video> src to be used on line
101:

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 November 2012 15:35:19 GMT