webvtt.js:WebVTT解析器和验证器

时间:2021-05-24 03:15:35
【文件属性】:
文件名称:webvtt.js:WebVTT解析器和验证器
文件大小:55KB
文件格式:ZIP
更新时间:2021-05-24 03:15:35
JavaScript WebVTT解析器和验证器 相关链接: 。 安装 您可以将parser.js文件加载到HTML页面中,并且该API将在window可用。 或者,您可以使用bower( webvtt )或npm( npm install webvtt-parser ) npm install webvtt-parser 。 原料药 该模块通过window或require() / import类导出到; 您可能需要的是WebVTTParser和WebVTTSerializer 。 要解析WebVTT字符串: import { WebVTTParser } from 'webvtt-parser' ; const parser = new WebVTTParser ( ) ; const tree = parser . parse ( someVTT , 'metadata' ) ; 默认情况下,We
【文件预览】:
webvtt.js-master
----package.json(645B)
----html-entities.md(200B)
----parser.html(3KB)
----test()
--------wpt-cue-parsing()
--------parser.js(6KB)
--------wpt-file-parsing()
----LICENSE.md(7KB)
----parser.js(26KB)
----README.md(1KB)
----bower.json(367B)
----html-entities.json(46KB)

网友评论