查看audio play事件
http://jplayer.org/HTML5.Media.Event.Inspector/

media.seekable, buffered,played这些数据

webVTT的用处(一般使用srt格式)

subtitle(dialogue), captions(sound effects, relevant music cue, and other relevant audio information)

descriptions(textual descriptions of the  video component of the media resource)

chapters(intended to be used for navigating the media resource)

metadata(tracks intended for use from script, not displayed by user agent)

https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API

WEBVTT

:01.000 --> :04.000
Never drink liquid nitrogen. :05.000 --> :09.000
- It will perforate your stomach.
- You could die.

webGL on canvas

基于canvas使用webGL可以对video逐帧修正后放到canvas中播放,效果很棒

http://seriouslyjs.org

video + canvas = magic:

http://html5doctor.com/video-canvas-magic/

https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Manipulating_video_using_canvas

html5 media events:

https://html.spec.whatwg.org/multipage/media.html#mediaevents

Event name Interface Fired when... Preconditions
loadstart Event The user agent begins looking for media data, as part of the resource selection algorithm. networkState equals NETWORK_LOADING
progress Event The user agent is fetching media data. networkState equals NETWORK_LOADING
suspend Event The user agent is intentionally not currently fetching media data. networkState equals NETWORK_IDLE
abort Event The user agent stops fetching the media data before it is completely downloaded, but not due to an error. error is an object with the code MEDIA_ERR_ABORTED. networkState equals either NETWORK_EMPTY or NETWORK_IDLE, depending on when the download was aborted.
error Event An error occurs while fetching the media data or the type of the resource is not supported media format. error is an object with the code MEDIA_ERR_NETWORK or higher. networkState equals either NETWORK_EMPTY or NETWORK_IDLE, depending on when the download was aborted.
emptied Event A media element whose networkState was previously not in the NETWORK_EMPTY state has just switched to that state (either because of a fatal error during load that's about to be reported, or because the load() method was invoked while the resource selection algorithm was already running). networkState is NETWORK_EMPTY; all the IDL attributes are in their initial states.
stalled Event The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. networkState is NETWORK_LOADING.
loadedmetadata Event The user agent has just determined the duration and dimensions of the media resource and the text tracks are ready. readyState is newly equal to HAVE_METADATA or greater for the first time.
loadeddata Event The user agent can render the media data at the current playback position for the first time. readyState newly increased to HAVE_CURRENT_DATA or greater for the first time.
canplay Event The user agent can resume playback of the media data, but estimates that if playback were to be started now, the media resource could not be rendered at the current playback rate up to its end without having to stop for further buffering of content. readyState newly increased to HAVE_FUTURE_DATA or greater.
canplaythrough Event The user agent estimates that if playback were to be started now, the media resource could be rendered at the current playback rate all the way to its end without having to stop for further buffering. readyState is newly equal to HAVE_ENOUGH_DATA.
playing Event Playback is ready to start after having been paused or delayed due to lack of media data. readyState is newly equal to or greater than HAVE_FUTURE_DATA and paused is false, or paused is newly false and readyState is equal to or greater than HAVE_FUTURE_DATA. Even if this event fires, the element might still not be potentially playing, e.g. if the element is paused for user interaction or paused for in-band content.
waiting Event Playback has stopped because the next frame is not available, but the user agent expects that frame to become available in due course. readyState is equal to or less than HAVE_CURRENT_DATA, and paused is false. Either seeking is true, or the current playback position is not contained in any of the ranges in buffered. It is possible for playback to stop for other reasons without paused being false, but those reasons do not fire this event (and when those situations resolve, a separate playing event is not fired either): e.g., playback has ended, or playback stopped due to errors, or the element has paused for user interaction or paused for in-band content.
seeking Event The seeking IDL attribute changed to true, and the user agent has started seeking to a new position.  
seeked Event The seeking IDL attribute changed to false after the current playback position was changed.  
ended Event Playback has stopped because the end of the media resource was reached. currentTime equals the end of the media resource; ended is true.
durationchange Event The duration attribute has just been updated.  
timeupdate Event The current playback position changed as part of normal playback or in an especially interesting way, for example discontinuously.  
play Event The element is no longer paused. Fired after the play() method has returned, or when the autoplay attribute has caused playback to begin. paused is newly false.
pause Event The element has been paused. Fired after the pause() method has returned. paused is newly true.
ratechange Event Either the defaultPlaybackRate or the playbackRate attribute has just been updated.  
resize Event One or both of the videoWidth and videoHeight attributes have just been updated. Media element is a video element; readyState is not HAVE_NOTHING
volumechange Event Either the volume attribute or the muted attribute has changed. Fired after the relevant attribute's setter has returned.  

videojs can play必须配合使用mime

http://www.iana.org/assignments/media-types/media-types.xhtml#video

Name Template Reference
1d-interleaved-parityfec video/1d-interleaved-parityfec [RFC6015]
3gpp video/3gpp [RFC3839][RFC6381]
3gpp2 video/3gpp2 [RFC4393][RFC6381]
3gpp-tt video/3gpp-tt [RFC4396]
BMPEG video/BMPEG [RFC3555]
BT656 video/BT656 [RFC3555]
CelB video/CelB [RFC3555]
DV video/DV [RFC6469]
encaprtp video/encaprtp [RFC6849]
example video/example [RFC4735]
H261 video/H261 [RFC4587]
H263 video/H263 [RFC3555]
H263-1998 video/H263-1998 [RFC4629]
H263-2000 video/H263-2000 [RFC4629]
H264 video/H264 [RFC6184]
H264-RCDO video/H264-RCDO [RFC6185]
H264-SVC video/H264-SVC [RFC6190]
H265 video/H265 [RFC7798]
iso.segment video/iso.segment [David_Singer][ISO-IEC_JTC1]
JPEG video/JPEG [RFC3555]
jpeg2000 video/jpeg2000 [RFC5371][RFC5372]
mj2 video/mj2 [RFC3745]
MP1S video/MP1S [RFC3555]
MP2P video/MP2P [RFC3555]
MP2T video/MP2T [RFC3555]
mp4 video/mp4 [RFC4337][RFC6381]
MP4V-ES video/MP4V-ES [RFC6416]
MPV video/MPV [RFC3555]
mpeg   [RFC2045][RFC2046]
mpeg4-generic video/mpeg4-generic [RFC3640]
nv video/nv [RFC4856]
ogg video/ogg [RFC5334][RFC7845]
parityfec   [RFC5109]
pointer video/pointer [RFC2862]
quicktime video/quicktime [RFC6381][Paul_Lindner]
raptorfec video/raptorfec [RFC6682]
raw   [RFC4175]
rtp-enc-aescm128 video/rtp-enc-aescm128 [_3GPP]
rtploopback video/rtploopback [RFC6849]
rtx video/rtx [RFC4588]
smpte291 video/smpte291 [RFC8331]
SMPTE292M video/SMPTE292M [RFC3497]
ulpfec video/ulpfec [RFC5109]
vc1 video/vc1 [RFC4425]
vnd.CCTV video/vnd.CCTV [Frank_Rottmann]
vnd.dece.hd video/vnd.dece.hd [Michael_A_Dolan]
vnd.dece.mobile video/vnd.dece.mobile [Michael_A_Dolan]
vnd.dece.mp4 video/vnd.dece-mp4 [Michael_A_Dolan]
vnd.dece.pd video/vnd.dece.pd [Michael_A_Dolan]
vnd.dece.sd video/vnd.dece.sd [Michael_A_Dolan]
vnd.dece.video video/vnd.dece.video [Michael_A_Dolan]
vnd.directv.mpeg video/vnd.directv-mpeg [Nathan_Zerbe]
vnd.directv.mpeg-tts video/vnd.directv.mpeg-tts [Nathan_Zerbe]
vnd.dlna.mpeg-tts video/vnd.dlna.mpeg-tts [Edwin_Heredia]
vnd.dvb.file video/vnd.dvb.file [Peter_Siebert][Kevin_Murray]
vnd.fvt video/vnd.fvt [Arild_Fuldseth]
vnd.hns.video video/vnd.hns.video [Swaminathan]
vnd.iptvforum.1dparityfec-1010 video/vnd.iptvforum.1dparityfec-1010 [Shuji_Nakamura]
vnd.iptvforum.1dparityfec-2005 video/vnd.iptvforum.1dparityfec-2005 [Shuji_Nakamura]
vnd.iptvforum.2dparityfec-1010 video/vnd.iptvforum.2dparityfec-1010 [Shuji_Nakamura]
vnd.iptvforum.2dparityfec-2005 video/vnd.iptvforum.2dparityfec-2005 [Shuji_Nakamura]
vnd.iptvforum.ttsavc video/vnd.iptvforum.ttsavc [Shuji_Nakamura]
vnd.iptvforum.ttsmpeg2 video/vnd.iptvforum.ttsmpeg2 [Shuji_Nakamura]
vnd.motorola.video video/vnd.motorola.video [Tom_McGinty]
vnd.motorola.videop video/vnd.motorola.videop [Tom_McGinty]
vnd.mpegurl video/vnd-mpegurl [Heiko_Recktenwald]
vnd.ms-playready.media.pyv video/vnd.ms-playready.media.pyv [Steve_DiAcetis]
vnd.nokia.interleaved-multimedia video/vnd.nokia.interleaved-multimedia [Petteri_Kangaslampi]
vnd.nokia.mp4vr video/vnd.nokia.mp4vr [Miska_M._Hannuksela]
vnd.nokia.videovoip video/vnd.nokia.videovoip [Nokia]
vnd.objectvideo video/vnd.objectvideo [John_Clark]
vnd.radgamettools.bink video/vnd.radgamettools.bink [Henrik_Andersson]
vnd.radgamettools.smacker video/vnd.radgamettools.smacker [Henrik_Andersson]
vnd.sealed.mpeg1 video/vnd.sealed.mpeg1 [David_Petersen]
vnd.sealed.mpeg4 video/vnd.sealed.mpeg4 [David_Petersen]
vnd.sealed.swf video/vnd.sealed-swf [David_Petersen]
vnd.sealedmedia.softseal.mov video/vnd.sealedmedia.softseal-mov [David_Petersen]
vnd.uvvu.mp4 video/vnd.uvvu-mp4 [Michael_A_Dolan]
vnd.vivo video/vnd-vivo [John_Wolfe]
VP8 video/VP8 [RFC7741]

html5 audio vedio and video.js的更多相关文章

  1. HTML5 audio元素如何使用js与jquery控制其事件

    前言: 每一次遇见问题想到的就是怎么解决?最好的方法还是查询网络媒体,更好的办法是让自己记忆,只有自己理解到了才真正是属于自己.要做一个订单提醒功能,没有使用audio相关的插件,虽然插件无数,还是喜 ...

  2. video.js视频播放插件

    1 初始化 Video.js初始化有两种方式. 1.1 标签方式 一种是在<video>标签里面加上class="video-js"和data-setup='{}'属性 ...

  3. [jPlayer] HTML5 Audio & Video for jQuery

    ---------------------------------------------------------------------------------------------------- ...

  4. Using HTML5 audio and video

    From:https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video Using HTML5 ...

  5. HTML5(Canvas Vedio Audio 拖动)

    1.Canvas    (在画布上(Canvas)画一个红色矩形,渐变矩形,彩色矩形,和一些彩色的文字) HTML5 元素用于图形的绘制,通过脚本 (通常是JavaScript)来完成. 标签只是图形 ...

  6. [转帖]HTML5 Audio/Video 标签,属性,方法,事件汇总

    HTML5 Audio/Video 标签,属性,方法,事件汇总 <audio>标签属性: src:音乐的URL preload:预加载 autoplay:自动播放 loop:循环播放 co ...

  7. The jQuery HTML5 Audio / Video Library (jQuery jPlayer插件给你的站点增加视频和音频功能)

    http://jplayer.org/ The jQuery HTML5 Audio / Video Library jPlayer is the completely free and open s ...

  8. HTML5视频播放插件 video.js介绍

    video.js是一款很流行的html5视频播放插件.很适合在移动端播放视频(比如微信网页),功能强大,且支持降级到flash,兼容ie8.官网:http://videojs.com/    git& ...

  9. Three.js + HTML5 Audio API 打造3D音乐频谱,Let’s ROCK!

    继续玩味之前写的音乐频谱作品,将原来在Canvas标签上的 作图利用Three.js让它通过WebGL呈现,这样就打造出了一个全立体感的频谱效果了. 项目详情及源码 项目GitHub地址:https: ...

随机推荐

  1. vs2013 with update2安装记录

    1.安装之后,提示update2无法安装2.按照以下方法进行修复,提示无法安装的项更多了(1项变3项了) http://jingyan.baidu.com/article/6d704a13f34d10 ...

  2. 【jQuery源码】jQuery对象初始化

    看了一下午还是有很多地方没弄明白,jQuery的一些工具方法的原理也不完全清楚,这篇文章会随着我深入阅读jQuery源码的同时不断更新. // Initialize a jQuery object / ...

  3. win7、8上走网络打印机(需找驱动包,不能自动)

    不多说,直接上干货! 简而言之,就是, 第一步是,将电脑与打印机联上网,进行匹配,即连上网可以查找到打印机的型号. 第二步是,安装驱动. D:\Driver\HP LJP2015 PCL6(注意,这个 ...

  4. sql 递归树

    with CTE as ( -->Begin 一个定位点成员 select ID, PersonName,ParentID,cast(PersonName as nvarchar(max)) a ...

  5. nginx添加多站点

    1.登陆服务器2.修改ngnix配置文件3.重启ngnix4.测试是否添加成功 修改/nginx/conf/nginx.confviminclude /alidata/server/nginx/con ...

  6. pandas数据分析

    本篇主要介绍如何用pandas来分析一份刚拿到的数据集,即做数据挖掘或清洗的工作. 这里以贷款申请预测的数据来作为例子 一.查看基本信息 拿到数据首先看看大致结构,查看行列数,dataframe数据结 ...

  7. chrome 下修改 agent 的方法

    前言 这篇文章和 tiankonguse 的个人网站里的文章保持同步. 很早之前,在 chrome 下修改 agent 的方法是使用 chrome 插件. 后来 chrome 的某一个版本中自带这个功 ...

  8. 使用Pelican在Github(国外线路访问)和Coding(国内线路访问)同步托管博客

    本文原文地址:使用Pelican在Github(国外线路访问)和Coding(国内线路访问)同步托管博客 介绍: Github Pages 禁用了百度爬虫,因此百度搜索引擎经常抓取不到在Github上 ...

  9. [codeup] 1943 进制转换

    题目描述 将一个长度最多为30位数字的十进制非负整数转换为二进制数输出. 输入 多组数据,每行为一个长度不超过30位的十进制非负整数.(注意是10进制数字的个数可能有30个,而非30bits的整数) ...

  10. Prim算法和Kruskal算法求最小生成树

    Prim算法 连通分量是指图的一个子图,子图中任意两个顶点之间都是可达的.最小生成树是连通图的一个连通分量,且所有边的权值和最小. 最小生成树中,一个顶点最多与两个顶点邻接:若连通图有n个顶点,则最小 ...