javascript - Google Drive Host 上的 libjass,可能吗?

标签 javascript node.js google-drive-api

我想使用libjass在 Google Drive Host 上使用 video-js。

但是 Google Drive Host 只允许 HTML 和 JS 文件,我无法在 Google Drive 上安装 Node。那么如何在 Google 云端硬盘上使用 libjass?

最佳答案

如果您按照README.md操作,您将看到„I want to use libjass for my website. What do I need to do?“部分。

  1. You need to build libjass.js using the instructions in BUILD.md
  2. You need to load libjass.js and libjass.css on the page with your video.
  3. You need to call the libjass API.

Only libjass.js and libjass.css are needed to use libjass on your website. The other files are only used during the build process and you don't need to deploy them to your website.

然后阅读BUILD.md :

  1. Install node.js from http://nodejs.org/ or via your package manager
  2. Change to the directory where you cloned this repository.
  3. Run the following command

    npm install

    This will install the dependencies - Gulp, Mocha, TypeScript, UglifyJS2 and Vinyl. It will then run gulp to build libjass.js and minify it into libjass.min.js

因此,只需在您的计算机上本地构建它,然后将已构建的 .js 文件上传到您的 Google 云端硬盘即可。

关于javascript - Google Drive Host 上的 libjass,可能吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27452888/

相关文章:

javascript - Google Drive API 根据共享云端硬盘中的所有者列出文件

javascript - 在 Javascript 中提交数据

javascript - 使用像 fiddler 一样的代理和 fetch api

node.js - React 不保留或发送 cookie 到 Node?

node.js - 关于so​​cket.io适配器的问题

python - 通过 PyDrive 删除文件

google-drive-api - 处理传入的 Google Drive 更改的 404 错误

javascript - Plotly.js 悬停在多个子图中

javascript - 本地 Javascript 范围问题

javascript - 如何调整选项卡容器中的 div 位置?