章术

导航

2012年10月15日

检测浏览器是否支持html5 <video>标签 javascript

摘要: <script type="text/javascript"> function checkVideo(){if(!!document.createElement('video').canPlayType) { var vidTest=document.createElement("video"); oggTest=vidTest.canPlayType('video/ogg; codecs="theora, vorbis"'); if (!oggTest) { h264Test=vidTe 阅读全文

posted @ 2012-10-15 15:50 章术 阅读(402) 评论(0) 推荐(0) 编辑