Giter VIP home page Giter VIP logo

Comments (15)

orzogc avatar orzogc commented on June 12, 2024

怎么搞?

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

本地监听一个端口,插件前台直接通过HTTP协议发送请求。

from acfunlive.

btjoker avatar btjoker commented on June 12, 2024

油猴挺简单的, 直播页面的要设置延迟运行脚本
集成个web服务, 网页通过按钮点击, fetch发送uid到本地, 根据path决定是加入提醒还是下载

from acfunlive.

orzogc avatar orzogc commented on June 12, 2024

我研究一下吧,应该就是通过访问http://localhost:port/命令/uid来发送请求

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

对的,我那时候还特地看了插件调用本地程序;对比那种,还是这种监听TCP端口的办法好多了。

from acfunlive.

orzogc avatar orzogc commented on June 12, 2024

弄出来了,你们测试看看有没有问题

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

弄出来了,你们测试看看有没有问题

你好,服务器返回可以采用json之类的格式吗

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

我们还需要的返回有
1.关注的所有主播的列表
2.正在录制的主播的列表

from acfunlive.

orzogc avatar orzogc commented on June 12, 2024

我们还需要的返回有
1.关注的所有主播的列表
2.正在录制的主播的列表

第二个已经有了

from acfunlive.

orzogc avatar orzogc commented on June 12, 2024

好了,你再测试

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

好了,你再测试

辛苦了

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

Need to Handle CORS Requests
https://github.com/gorilla/mux#handling-cors-requests
本地访问需要解决跨域问题(在服务器端头部加入允许跨域的头部)

from acfunlive.

orzogc avatar orzogc commented on June 12, 2024

你现在再试试

from acfunlive.

Sokwva avatar Sokwva commented on June 12, 2024

可以了,整合完成,谢谢

from acfunlive.

Related Issues (20)

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.