Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 前端请求转发 #7

Open
iyear opened this issue Dec 28, 2021 · 4 comments
Open

[Feat] 前端请求转发 #7

iyear opened this issue Dec 28, 2021 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@iyear
Copy link
Owner

iyear commented Dec 28, 2021

core本身不会提供直播推荐等功能,但是前端可以选择提供多样化的其他功能。core将提供http请求转发的功能使前端避免跨域问题

@iyear iyear added the enhancement New feature or request label Dec 28, 2021
@iyear iyear added this to the v0.1.0-release milestone Dec 28, 2021
iyear added a commit that referenced this issue Dec 28, 2021
@biggerxiong
Copy link
Contributor

”core 本身不会提供直播推荐等功能“

请问这句话是说,以后也不会提供类似 ”浏览平台所有直播“ (类似于点击某一分区,浏览该分区所有直播) 这一类功能吗?

如果想要实现该功能,您的设计是由前端转发 http 请求来解析吗?

@iyear
Copy link
Owner Author

iyear commented Dec 30, 2021

是的,初步是不想在core里做这件事的,因为排名这些会引起各种纠纷,所以客户端推荐和排名可做可不做,看第三方作者自己的选择。frontend demo是不会做的,core只提供工具

但是这样的话各个客户端实现会非常繁杂,大量的重复代码,所以这块目前还没有决定好。

@biggerxiong
Copy link
Contributor

但我认为 “浏览所有直播” 和 “搜索某个直播” 是直播的刚需,虽然大部分情况下我们只是看自己关注的那几个主播,但不可否认用户也会需要去浏览所有直播,从而发现喜爱的新主播。

其实 core 可以提供 获取所有直播获取某个分区内所有直播 这两个接口,默认按热度进行排序(事实上所有平台都是这么做的)。

客户端就根据这两个接口来做推荐和排名,根据收藏的主播进行个性化推荐也好,设计更符合用户口味的直播排名也好,这些都由客户端自己去实现。

这样也许可以避免你说的问题,你觉得呢?

@iyear
Copy link
Owner Author

iyear commented Dec 30, 2021

一开始做的时候就只是想做成一个只看自己想看的主播的 pure live,加入推荐觉得显得太繁杂了,感觉就变味了

遵从社区意见吧,虽然对于大多数人确实是刚需

@iyear iyear added the question Further information is requested label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants