fsd-vod
TypeScript icon, indicating that this package has built-in type declarations

0.13.3 • Public • Published

fsd-vod

FSD VOD文件读写适配器。

const FSD = require('fsd');
const VodAdapter = require('fsd-vod');

const adapter = new VodAdapter(config);
const fsd = FSD({ adapter: adapter });

let videoId = await adapter.alloc({ name: 'test.mp4' });
let file = fsd(videoId);

await fsd.write(data);

FSD 文档: https://github.com/liangxingchen/fsd

适配器初始化选项:

选项 类型 必须 说明
urlPrefix string URL前缀,用于生成下载链接
accessKeyId string Yes Vod访问KEY
accessKeySecret string Yes Vod访问秘钥
region string 默认 cn-shanghai
templateGroupId string 转码模板组ID
workflowId string 工作流ID
callbackUrl string 边缘上传后的回调地址

Readme

Keywords

none

Package Sidebar

Install

npm i fsd-vod

Weekly Downloads

1

Version

0.13.3

License

MIT

Unpacked Size

19.3 kB

Total Files

5

Last publish

Collaborators

  • liangxingchen