AUDIO WAVE MPEG-4 Ogg Vorbis MPEG 音频波MPEG-4 Ogg Vorbis MPEG .wav .m4a .oga .mp3
.wav .m4a .oga .mp3
Firefox 3.6 X - X -
Firefox 3.6 X-X-
Safari 4.0 X X - X
Safari 4.0 X X-X
Chrome 4.0 - X X X
Chrome 4.0-X X X
Other (Flash) - - - X
其他(闪光灯)---X
code> pre>
For audio, you have to include at least .mp3 and .oga/.ogg versions to cover all browsers.
对于音频,您必须至少包括.mp3和.oga / .ogg版本才能覆盖所有浏览器。
(Or, you can supply .mp3 only which will force Firefox to fall back to Flash).
(或者,您只能提供.mp3,这将迫使Firefox退回到Flash)。
Other formats are optional.
其他格式是可选的。
Again, the preference for multiple available files in browsers supporting multiple codecs is left to right.
同样,支持多种编解码器的浏览器中对多个可用文件的偏好从左到右。 p>
The Flash players used are a standalone version of WordPress Audio Player by Martin Laine, and WordPress音频播放器和
http://code.google.com/p/mrdoob/wiki/videoplayer" rel="nofollow">Videoplayer by Mr.doob.
http://code.google.com/p/mrdoob/wiki/videoplayer“ rel =” nofollow“>视频播放器,作者是Mr.doob。 p>
Plugin Homepage
插件主页 p>
Instructions
说明 h4>
Currently, there is no settings panel.
当前,没有设置面板。
All you need is the syntax for the shortcodes explained below.
您只需要下面说明的短代码的语法即可。 p>
Audio
音频 strong> p>Basic syntax: [audio src="
File URL/path"]
基本语法: [audio src =“ code> File URL / path ”] code> p>Advanced syntax: [audio src="
File URL/path" options="
special string" id="
string高级语法: [audio src =“ code> File URL / path ” options =“ code> special string ” id =“ code> string " format="
special string"]
“ format =” code>特殊字符串“] code> p>Example:
示例: p>
[audio src="http://myblog.com/wp-content/uploads/2009/09/mysong" options="autoplay loop controls" id="header-audio"] [音频src =“ http://myblog.com/wp-content/uploads/2009/09/mysong” options =“自动播放循环控件” id =“ header-audio”]
code> pre>
src
is required.-
src code>是必需的。It must be an absolute or relative path to audio with the file name (“mysong”, in the above example).
它必须是文件名(在上面的示例中为“ mysong”)的音频的绝对路径或相对路径。
The files need to be located somewhere in your content folder (usually ‘wp-content’) unless you specify the files using the format
option.
除非您使用 format code>选项指定文件,否则文件必须位于内容文件夹中的某个位置(通常为“ wp-content”)。File extension can be omitted.
文件扩展名可以省略。
Upload “mysong.mp3”, “mysong.ogg” etc. as applicable to the specified location.
上传适用于指定位置的“ mysong.mp3”,“ mysong.ogg”等。 li>
options
is optional.-
options code>是可选的。It is a space-separated list of attributes defining the player behavior:
这是用空格分隔的定义玩家行为的属性列表:
autoplay to start playback automatically;
自动播放 strong>以自动开始播放; autobuffer to start preparing the playback, controls to display the built-in playback controls (otherwise you can build and hook up your own), and loop
自动缓冲 strong>以开始准备播放,控件 strong>以显示内置的播放控件(否则您可以构建并连接自己的播放器),并循环 strong> > to start from the beginning when the end is reached.
>从结尾处开始。
The default value is "controls autobuffer"
.
默认值为“控件自动缓冲” code>。 li>id
is optional.-
id code>是可选的。If you do not include one, the audio tag will have an automatically generated ID of html5audio-
number.
如果您不添加音频标签,则音频标签将自动生成 html5audio- code> number em>的ID。 The IDs for the Flash players are prefixed with f-
.
Flash播放器的ID前缀为 f- code>。 li>class
is optional.-
class code>是可选的。It is applied to a ‘wrapper’ div and to the audio tag.
它应用于“包装” div和音频标签。
If you do not include one, the class will be ‘html5audio’.
如果您不包括该类,则该类将为“ html5audio”。 li>
format
is optional.-
format code>是可选的。It is a space-separated list of available file formats.
它是可用文件格式的以空格分隔的列表。
(Recognized values are auto, m4a, mp3, oga, ogg and <
(公认的值为 auto strong>, m4a strong>, mp3 strong>, oga strong>, ogg strong>和< strong>wav
.) The default value is auto which autodetects the formats.strong> wav strong>。)默认值为 auto strong>,可自动检测格式。You can specify a list of available formats manually instead (e.g. format="oga mp3 wav"
).
您可以手动指定可用格式的列表(例如 format =“ oga mp3 wav” code>)。 li>
ul>
Video
视频 strong> p>Basic syntax: [video src="
File URL/path"]
基本语法: [video src =“ code> File URL / path ”] code> p>Advanced syntax: [video src="
File URL/path" width="
pixel size" height="
pixel size
高级语法: [video src =“ code> File URL / path ” width =“ code> pixel size ” height =“ code> pixel size
>" options="
string" id="
string" format="
special string"]
>“ options =” code> string “ id =” code> string “ format =” code>特殊字符串“] code> p>Example:
示例: p>
[video src="http://myblog.com/videos/vidclip" poster="http://myblog.com/wp-content/uploads/2009/09/clip-teaser.jpg" [video src =“ http://myblog.com/videos/vidclip” poster =“ http://myblog.com/wp-content/uploads/2009/09/clip-teaser.jpg”width="320" height="240" options="autoplay" id="vid-1"]
宽度=“ 320”高度=“ 240”选项=“自动播放” id =“ vid-1”]
code> pre>
src
is required.-
src code>是必需的。It must be an absolute or relative path to video with the file name (“vidclip”, in this example).
它必须是文件名(在此示例中为“ vidclip”)的视频的绝对路径或相对路径。
The files need to be located somewhere in your content folder (usually ‘wp-content’) unless you specify the files using the format
option.
除非您使用 format code>选项指定文件,否则文件必须位于内容文件夹中的某个位置(通常为“ wp-content”)。File extension can be omitted.
文件扩展名可以省略。
Upload “vidclip.ogg” (in Ogg Theora format) and “vidclip.m4v” (in mp4 format) to the specified location.
将“ vidclip.ogg”(Ogg Theora格式)和“ vidclip.m4v”(mp4格式)上传到指定位置。 li>
poster
is optional.-
海报 code>是可选的。It is a URL to the image you want to display before the video loads/starts playback.
它是您要在视频加载/开始播放之前显示的图像的URL。
(If a jpg with the same file name can be detected, it will be used when ‘poster’ is not specified.)
(如果可以检测到具有相同文件名的jpg,则当未指定“海报”时将使用它。) li>
width
and height
are optional.-
width code>和 height code>是可选的。The default size is 480×320 (which is the resolution of iPhone; larger videos might not play back on iPhone/iPod Touch).
默认尺寸为480×320(这是iPhone的分辨率;较大的视频可能无法在iPhone / iPod Touch上播放)。 li>
options
is optional.-
options code>是可选的。It is a space-separated list of attributes defining the player behavior:
这是用空格分隔的定义玩家行为的属性列表:
autoplay to start playback automatically;
自动播放 strong>以自动开始播放; autobuffer to start preparing the playback, controls to display the built-in playback controls (otherwise you can build and hook up your own), and loop
自动缓冲 strong>以开始准备播放,控件 strong>以显示内置的播放控件(否则您可以构建并连接自己的播放器),并循环 strong> > to start from the beginning when the end is reached.
>从结尾处开始。
The default value is "controls autobuffer"
.
默认值为“控件自动缓冲” code>。 li>id
is optional.-
id code>是可选的。If you do not include one, the video tag will have an automatically generated ID of html5video-
number.
如果您不添加视频标签,那么视频标签将自动生成 html5video- code> number em>的ID。 The IDs for the Flash players are prefixed with f-
.
Flash播放器的ID前缀为 f- code>。 li>class
is optional.-
class code>是可选的。It is applied to a ‘wrapper’ div and to the video tag.
它应用于“包装” div和视频标签。
If you do not include one, the class will be ‘html5audio’.
如果您不包括该类,则该类将为“ html5audio”。 li>
format
is optional.-
format code>是可选的。It is a space-separated list of available file formats.
它是可用文件格式的以空格分隔的列表。
(Recognized values are auto, flv, m4v, ogg and ogv.)
(公认的值为自动 strong>, flv strong>, m4v strong>, ogg strong>和 ogv strong>。)The default value is auto which autodetects the formats.
默认值为自动 strong>,它可以自动检测格式。You can specify a list of available formats manually instead (e.g. format="ogg m4v"
).
您可以手动指定可用格式的列表(例如 format =“ ogg m4v” code>)。 li>
ul>
If you find this plugin useful, you can rate it and link to the如果您发现此插件有用,则可以对其进行评分并链接到 theplugin
.
插件
。
If you don’t like it, feel free to leave feedback and comments on the webpage.
如果您不喜欢它,请随时在网页上留下反馈和评论。 p>