Re: Canvas, Audio, Video Test Submission

On Fri, 25 Jun 2010 03:27:50 +0200, Kris Krueger <krisk@microsoft.com>  
wrote:

> Thanks for the feedback - what is the UA string for the nightly FF build?
> In theory we could change the tests so the FF Nightly build gets an  
> appropriate video format.

You're missing the point. Remove the browser sniffing altogether and  
replace it with:

if (document.createElement('video').canPlayType('video/ogg;  
codecs="theora, vorbis"'))
   extension = '.ogv';


> -----Original Message-----
> From: Matthew Gregan [mailto:kinetik@flim.org]
> Sent: Thursday, June 24, 2010 5:37 PM
> To: Kris Krueger
> Subject: Re: Canvas, Audio, Video Test Submission
>
> Hi Kris,
>
> Thanks for the tests.  I've run through all of the video tests with a  
> nightly Firefox build and made sure we had bugs filed for any that  
> failed.
>
> One problem I ran into with the video tests is that they use user agent  
> sniffing to determine the video format to use for the tests.  This means  
> that regular Firefox nightly builds fail most of the tests as it  
> deliberately uses a non-Firefox user agent to catch problems like this.
>
> I think the best way to solve this problem would be to modify the tests  
> to use canPlayType to determine an appropriate video format to use for  
> the user agent under test.
>
> Thanks,
> -mjg

-- 
Simon Pieters
Opera Software

Received on Friday, 25 June 2010 08:28:17 UTC