Git Product home page Git Product logo

douyin's Introduction

douyin

抖音[直播伴侣]推流密钥获取工具 抖音直播间弹幕、进入房间等数据获取,通过Websocket对接Fay

大概思路

通过中间人代理获取开播返回的rtmp地址

实现流程

  1. 用户安装CA证书
  2. 启动代理服务器
  3. 检测到开播
  4. 解析得出RTMP地址
  5. 强制结束直播伴侣(不能点断开)
  6. OBS介入推流
  7. 关闭代理服务器
  8. 退出本进程

OpenSSL生成证书

./certificates/generate-certificates.sh

MacOS信任证书

sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./certificates/proxy-ca.crt

Windows信任证书

  1. 双击打开./certificates/proxy-ca.crt,点击【安装证书】
  2. 选择【本地计算机】并单击下一步
  3. 选择【将所有的证书都放入下列存储(P)】-> 点击【浏览】
  4. 选中第二个【受信任的根证书颁发机构】-> 点击【确定】-> 选择【下一步】
  5. 选择【完成】-> 点击【确定】-> 点击【确定】

Android信任证书

  1. 将proxy-ca.crt发至手机
  2. 。。。。

Ios信任证书

  1. 将proxy-ca.crt发至手机
  2. 。。。。

注意事项

要关直播请再次运行直播伴侣 点 继续直播 然后再关闭直播 否则就算不推流了也不会立刻下播(懒得写下播了)

Fay中需将json的大写首字母改成小写

Fay中需修改的代码

运行说明

Docker运行

需要先生成证书

./certificates/generate-certificates.sh
cd ./docker
docker-compose up -d

release下载可执行文件运行

  1. 下载
  2. 生成证书
  3. 信任证书
  4. 打开可执行文件
  5. 将证书发给需要代理的设备

感谢

douyin's People

Contributors

wwengg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.