引入B站的视频播放器SDK,完成视频列表制作,点击某个视频可以进行播放
“发现”页面的视频模块进入视频列表
SDK:https://github.com/bilibili/ijkplayer
可参考项目:
安卓:
https://github.com/lipangit/JiaoZiVideoPlayer
https://github.com/CarGuo/GSYVideoPlayer
https://github.com/Doikki/DKVideoPlayer
IOS:
https://github.com/changsanjiang/SJVideoPlayer
https://github.com/zhangfangtaozft/ZFTPlayer
数据接口文档:
视频列表:https://discuz.com/api-docs/v1/ThreadList.html
请求示例:
api/threads?include=user,user.groups,category,threadVideo&filter[isSticky]=no&filter[isApproved]=1&filter[isDeleted]=no&filter[isDisplay]=yes&filter[type]=2&filter[isEssence]=&filter[fromUserId]=&sort=&page[number]=1&page[limit]=10
示意图: