<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://zhidian.wuute.com/html5dev/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://zhidian.wuute.com/html5dev/feed.php">
        <title>HTML5知典 36:36</title>
        <description></description>
        <link>http://zhidian.wuute.com/html5dev/</link>
        <image rdf:resource="http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico" />
       <dc:date>2026-07-29T03:20:11+09:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/36/audio?rev=1492567955&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/36/image?rev=1493216887&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/36/start?rev=1492933957&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/36/video?rev=1492934407&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico">
        <title>HTML5知典</title>
        <link>http://zhidian.wuute.com/html5dev/</link>
        <url>http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico</url>
    </image>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/36/audio?rev=1492567955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-19T11:12:35+09:00</dc:date>
        <title>音频</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/36/audio?rev=1492567955&amp;do=diff</link>
        <description>音频

在过去，想要在网页上构建有声web只能借助Flash等插件，自从web步入HTML5时代后，除插件机制外，我们还可以运用HTML5提供的原生API来实现这一需求。

本节我们就来探究一下这些原生API。</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/36/image?rev=1493216887&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-26T23:28:07+09:00</dc:date>
        <title>图像</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/36/image?rev=1493216887&amp;do=diff</link>
        <description>图像

概述

图像处理API是通过Image对象来提供的。

如上图所示，Image是一个封装了HTMLImageElement接口的构造器，和document.createElement('img')一样，返回一个 HTMLImageElement 实例。

代码示例

图像预加载</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/36/start?rev=1492933957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-23T16:52:37+09:00</dc:date>
        <title>多媒体</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/36/start?rev=1492933957&amp;do=diff</link>
        <description>多媒体

定义

多媒体（Multimedia）指得是多种媒体，包括文本，声音和图像等多种媒体形式。

在这里,我们并不拘泥于一定是多种媒体的综合这种形式,把图像,音频和视频的处理皆归属为这个范畴。</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/36/video?rev=1492934407&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-23T17:00:07+09:00</dc:date>
        <title>视频</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/36/video?rev=1492934407&amp;do=diff</link>
        <description>视频

在HTML5 Web中我们可以很方便的使用原生API来操作视频文件。

示例

播放视频

首先来看一下视频的例子


&lt;video width=&quot;640&quot; height=&quot;480&quot; poster=&quot;video.jpg&quot; controls autoplay preload loop tabindex=&quot;0&quot;&gt;
 &lt;source src=&quot;video.webm&quot; type=&quot;video/webm&quot;&gt;
 &lt;source src=&quot;video.ogv&quot; type=&quot;video/ogg&quot;&gt;
 &lt;source src=&quot;video.mp4&quot; type=&quot;video/mp4&quot;&gt;
 &lt;track src=&quot;video.vtt&quot; kind=&quot;subtitles&quot; srclang=&quot;en&quot; 
        label=&quot;English&quot; default&gt;
&lt;/video&gt;</description>
    </item>
</rdf:RDF>
