将TextTrackCueList转换为vtt字符串

问题描述

在使用TexTrack方法addCueremoveCue之后,有没有办法将当前的TextTrack作为.vtt字符串获取?

    // Dynamic generated cue
    function addCustomCue(start,end,name) {
      var cue = new VTTCue(start,'');
      cue.id = name;
      cue.pauseOnExit = true;
      mediaElement.TextTracks[0].addCue(cue);
    }

    // Add new cue
    addCustomCue(12.783,13.612,'new data');
   
   // Generate updated TextTrack as .vtt file or string....

基本上,我想即时修改textTrack,在完成更改后,我想用新更改生成一个新的.vtt文件。

我没有在规格上找到任何东西,我需要编写自己的解析器/转换器还是可以使用更好的解决方案?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...