- From: Kris Krueger <krisk@microsoft.com>
- Date: Fri, 25 Jun 2010 16:12:04 +0000
- To: Simon Pieters <simonp@opera.com>, Matthew Gregan <kinetik@flim.org>, "'public-html-testsuite@w3.org' (public-html-testsuite@w3.org)" <public-html-testsuite@w3.org>
I understand that though the reason we didn't choose to use this was that the canPlayType call may not actually lead to media being able to be played. For example when a UA returns probably it doesn't actually mean that the media will play. If we want to use this then I would encourage to have this api changed to be binary (yes/no) so that a web dev can be confident that an end user will actually see media playing. From the w3c HTML5 spec The canPlayType(type) method must return the empty string if type is a type that the user agent knows it cannot render; it must return "probably" if the user agent is confident that the type represents a media resource that it can render if used in with this audio or video element; and it must return "maybe" otherwise. Implementors are encouraged to return "maybe" unless the type can be confidently established as being supported or not. Generally, a user agent should never return "probably" if the type doesn't have a codecs parameter. -----Original Message----- From: Simon Pieters [mailto:simonp@opera.com] Sent: Friday, June 25, 2010 1:28 AM To: Matthew Gregan; 'public-html-testsuite@w3.org' (public-html-testsuite@w3.org); Kris Krueger Subject: 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 16:12:41 UTC