gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 11:13:24 26 4
gpt4 key购买 nike

我想使用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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com