哪里

问题描述:

我想表明我的jwplayer脚本的字幕在谷歌驱动器的视频字幕,但我不知道哪里是在谷歌字幕的路径推动视频哪里

tracks: [{ 
      file: "/assets/captions-en.vtt", 
      label: "Latino", 
      kind: "captions", 
      "default": true 
     },{ 
      file: "/assets/captions-fr.vtt", 
      kind: "captions", 
      label: "Subtitulado" 
     }], 
primary: 'html5', 

那是我的代码但字幕不出现,我知道在文件中我必须放置字幕路径,所以问题是如果有人知道什么是路径?

+0

AFAIK,驱动器文件不是分层的,如完整路径,因为[单个文件可以有多个parentID](https://stackoverflow.com/questions/41546503/how-to-get-absolute-path-of -a-document-and-file-from-google-drive-using-java-dri#comment70301074_41546503),并且在[论坛]中也有说明(https://productforums.google.com/forum/#!msg/驱动/ h6OkYSrWZp0/cyjdTMZ7x8gJ)。您还可以从链接中获得解决方法,了解如何使用自定义代码获取完整文件路径。 –

+0

您也可以按照[帮助页面](https://support.google.com/drive/answer/1372218?co=GENIE.Platform%3DDesktop&hl=en&oco=1)设置视频标题轨道。 –

+0

谢谢我的朋友为你解答... –

只需添加这样../assets/captions-en.vtt

tracks: [{ 
 
      file: "../assets/captions-en.vtt", 
 
      label: "Latino", 
 
      kind: "captions", 
 
      "default": true 
 
     },{ 
 
      file: "../assets/captions-fr.vtt", 
 
      kind: "captions", 
 
      label: "Subtitulado" 
 
     }], 
 
primary: 'html5',

像这样与我一起工作。