douyin-live

0.0.6 • Public • Published

Douyin-live

NPM Version JavaScript Stage

关于项目

抖音直播间

如何使用

  • 安装模块
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协议

Readme

Keywords

none

Package Sidebar

Install

npm i douyin-live

Weekly Downloads

0

Version

0.0.6

License

none

Unpacked Size

13.7 MB

Total Files

14

Last publish

Collaborators

  • krapnik