我想使用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?“部分。
- You need to build libjass.js using the instructions in BUILD.md
- You need to load libjass.js and libjass.css on the page with your video.
- 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
:
- Install node.js from http://nodejs.org/ or via your package manager
- Change to the directory where you cloned this repository.
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/