Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <5545457.NJFYEL58v4@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 23 Apr 2012 15:09:10 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit Subject: Re: video Newsgroups: comp.lang.javascript References: <1400436.AFRqVoOGUt@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 28 NNTP-Posting-Date: 23 Apr 2012 15:09:10 CEST NNTP-Posting-Host: b8981c23.newsspool2.arcor-online.net X-Trace: DXC=XgE4@4ifdlXU6b:FjPaGjQA9EHlD;3YcR4Fo<]lROoRQ8kF On 23/04/2012 9:13 PM, Thomas 'PointedEars' Lahn wrote: >> Andrew Poulos wrote: >>> A client has a MP4 video they want to play in a browser. […] >>> Is this >>> >>> function supports_video() { >>> return !!document.createElement('video').canPlayType; >>> } >>> >>> from >>> >>> >>> >>> a valid way test for support for the video format? >> No. > > Oops, I meant, testing for support of the video element. I have nothing to add at this time. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, (2004)