是否有字段或方法可以获取直播间信息?
Nauxscript opened this issue · comments
湯遒之 commented
目前只在 onRoomInfoChange
回调中看到有和直播间相关的信息,是否有其他字段或方法可以在 onStartListen
后获取直播间的相关信息呢?如 直播间名称、主播名称、上下播时间之类的。
十分感谢!
Diu commented
有额外的 api 可以获取,参考 https://github.com/ddiu8081/bilicli/blob/main/packages/live-mini/src/utils/getInfo.ts
node 端可以直接请求,在浏览器会有跨域问题
湯遒之 commented
有额外的 api 可以获取,参考 https://github.com/ddiu8081/bilicli/blob/main/packages/live-mini/src/utils/getInfo.ts node 端可以直接请求,在浏览器会有跨域问题
尝试了一下,确实可行;
十分感谢!