src
播放视频或者音频的URL地址
preload
是否预加载音频或者视频进行缓冲;
属性值{
none 表示不进行预加载
metadata 只预先加载媒体的元数据,主要包括媒体字节数,第一帧,播放列表,持续时间等信息;
auto 表示加载全部视频或者音频,该值是默认值。
}
poster
该属性是video独有的属性,当视频不可用时,向用户展示一张代替图片,避免视频不可用,一片空白。
loop
是否循环播放视频或者音频。
controls
是否为视频或者音频添加浏览器自带的播放控制条。控制条有播放器、暂停等按钮。不同的浏览器自带的控制条可能不一样。