Git Product home page Git Product logo

justlive-api-juhe's Introduction

JustLive

直播聚合(后端项目)

Android项目 JustLive-Android

前端Web项目 JustLive-Web

网站页面 live.yj1211.work

数据库结构 mixlive.sql

部署方式

  • 修改 配置文件(src/main/resources/application-github.properties) 中的数据库信息
  • 运行 src/main/java/work/yj1211/live/LiveApplication.java 启动

直播支持

虎牙、斗鱼、BILIBILI直播、网易cc(cc暂无清晰度切换)、企鹅电竞

直播源获取参考 wbt5/real-url

接口说明

(仅供参考,接口已经更新过多次,实际代码可能和以下说明不符)

直播相关接口都采用 HTTP GET 方法请求

请求地址 参数 接口说明
/getRecommend int page, int size 根据分页信息获取所有支持直播平台的推荐直播间(根据观看人数降序排序)
/getRecommendByPlatform String platform, int page, int size 根据分页信息获取指定直播平台的推荐直播间(根据观看人数降序排序)
/getRecommendByPlatformArea String platform, String area, int page, int size 获取指定直播平台下特定分区(area)的推荐直播间信息
/getRecommendByAreaAll String areaType, String area, int page 获取特定分区下所有直播平台的直播间信息(一页10个直播间)
/getRealUrl String platform, String roomId 获取指定平台直播间的真实直播推流地址
/getRoomInfo String uid, String platform, String roomId 获取指定平台直播间的房间信息(uid用来确定改用户是否已关注次直播间)
/getRoomsOn String uid 获取用户所有关注的直播间信息
/refreshArea 更新缓存中所有平台的分区信息
/getAreas String platform 获取指定平台下的分区信息
/getAllAreas 获取所有平台的分区信息
/search String platform, String keyWords, String isLive 搜索指定平台的主播(keyWords:搜索关键词,isLive:搜索正在直播的主播)

调用方式

支持通过Http和Https请求调用,Http请求请发送至8013端口,Https请求请发送至8014端口。

调用时请在uri中加上/api/live

Https请求调用示例:

image-20210524170329627

调用成功时,返回信息中code为200。

调用失败时,返回code为400。

justlive-api-juhe's People

Contributors

guyijie1211 avatar walter-lea 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.