Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news.unit0.net!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1400436.AFRqVoOGUt@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 23 Apr 2012 13:13:57 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit Subject: Re: video Newsgroups: comp.lang.javascript References: Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 24 NNTP-Posting-Date: 23 Apr 2012 13:13:58 CEST NNTP-Posting-Host: d748a935.newsspool2.arcor-online.net X-Trace: DXC=7VK?;\UfIGR[7Non7UCi8UA9EHlD;3YcR4Fo<]lROoRQ8kF 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. PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16