douyin-live
v0.0.6
Published
抖音直播
Downloads
1
Readme
Douyin-live
关于项目
抖音直播间
如何使用
- 安装模块
npm install douyin-live -S
- 开箱即用
const { EventEmitter } = require('events');
const { DouyinLiveWeb,DouyinLiveApp } = require('douyin-live');
const main = async ()=>{
let emitter = new EventEmitter();
emitter.on("message", (data)=>{
console.log(data);
})
let room = new DouyinLive(emitter);
let options = getLiveOptions(roomId);
let {url,headers} = options;
await room.connect(url,headers);
}
main();
接口文档
TODO
- [ ] 完善proto协议