Skip to content

OrdinaryRoad-Project/ordinaryroad-bilibili-live-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ordinaryroad-bilibili-live-demo

1 配置

tech:
  ordinaryroad:
    bilibili:
      live:
        client:
          config:
            # TODO 修改房间id
            roomId: 7777
            # TODO 修改Cookie
            cookie: ${cookie:}

2 LiveChatClientController

连接 http://localhost:8080/client/connect

断开链接 http://localhost:8080/client/disconnect/false

断开链接(取消此次的自动重连) http://localhost:8080/client/disconnect/true

修改房间id http://localhost:8080/client/roomId/{roomId}

禁用自动重新连接 http://localhost:8080/client/autoReconnect/false

启用自动重新连接 http://localhost:8080/client/autoReconnect/true

支持同时监听多个直播间

http://localhost:8080/client/multiply/newClientAndStart/7777 http://localhost:8080/client/multiply/newClientAndStart/6