Code Monkey home page Code Monkey logo

atv-bilibili-demo's People

Contributors

cay-zhang avatar char1ei avatar cxfksword avatar dependabot[bot] avatar dororojames avatar dreamsaddle avatar goooler avatar haowenwu avatar higuaifan avatar hydewww avatar jihongboo avatar kyle-ye avatar lhw-arthas avatar qsz13 avatar sugimoto-dev avatar xnth97 avatar yam-liu avatar yichengchen avatar zhangdo avatar zsisme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atv-bilibili-demo's Issues

播放失败 XCODE 14.1 TVOS16.1

XCODE 14.1 TVOS16.1
请求失败,decodeFail(message:"未能读取数据,因为数据缺失。
valueNotFound(Swift. UnkeyedDecoding Container,
Swift.DecodingError.Context (coding Path: [CodingKeys(stringValue: "dash", intValue: nil), CodingKeys(stringValue: "dolby", int Value: nil),
CodingKeys(stringValue: |"audio|", intValue: nil) ], debugDescription: |"Cannot get unkeyed decoding container - - found null value instead.", underlyingError: nil))")

最新版本在盒子中运行会崩溃,xcode看到似乎是dlna

tvOS 16.1.1 (20K80)
XCode Version 14.1

git 拉取最新代码,构建运行,过几秒即闪退。看xcode停留在

guard let ip = getIPAddress() else { assertionFailure(); return "" }

不晓得是不是获取ip没有权限,然后后面无法继续了。我现在强行给ip赋值"127.0.0.1",能“正常”运行了。但这肯定不对。。。

[功能建议]关注的up主列表

目前的关注功能是查看关注的up主近期发布的视频,但如果查看已关注up的老视频就只能在使用搜索。建议加在“我的”页面

题外话,功能设计上,
“稍后观看”表示对视频产生兴趣,但不一定会立即观看,时效性- 兴趣+;
“收藏”表示兴趣更高,但时效性稍弱,时效性--,兴趣++,
“关注”的up主属于经过观众个性化挑选,对多数视频都比较感兴趣的,通常第一时间及时看,老视频也会翻着看,时效++兴趣++
此时这三个功能共同组合每个人个性化的延后观看系统,其实我觉得如果不在“我的”页面放置,也许合并也是个可行的做法。
仅供参考

fetching错误是什么原因?

WX20221025-100758@2x

error project: Error while fetching remote repositoryhttps://github.com/cbpowell/MarqueeLabel: Communication with the service was interrupted.

请问一下,这个错误是什么原因呢

[功能建议]显示更多

视频详情页的描述和评论对于较长内容会显示不完整,希望有“更多”按钮在描述区和热门评论。

几个小问题

  • 推荐流与客户端不一致,而且会莫名的重复出现一些视频。我这边前段时间是某流量卡的视频现在是极氪拆解视频
  • 部分版权内容无法播放了,比如仙王第三季,我是客户端大会员。但是播放会提示404啥都木有可能需要大会员。
  • 小电视投屏兼容似乎失效了现在搜索不到设备。

收藏的番剧无法显示

重现方式:
1.在手机收藏番剧,添加到收藏夹的单独目录
2.电视上打开收藏,该目录是空白的。

播放错误

https://bilibili.com/video/BV1sG411M74Y

播放器失败
-16839 "Core MediaErrorDomain” "未能完成操作。
(CoreMediaErrorDomain错
误-16839- Unable to get playlist before long download timer.) " unknownvideo
codecs:
avc1.640032,hev1.1.6.L150.90,avc1.640032,hev1.1.6.L150.90,avc1.640028, audio: mp4a.40.2,mp4a.40.2,mp4a.40.2

求教,怎么获取up主视频或者内容?

目前内容列表的功能只有推荐视频,点击查看up主其它视频是刚需, 比search使用频率还高些;
目前在json 只看到owner字段,能否在 推荐位 改为 up主视频list, 或者在推荐下面显示up主所有视频。这样会方便很多 ;

private func update(with json:JSON) {
    print(json)
    let data = json["data"]
    titleLabel.text = data["title"].stringValue
    upNameLabel.text = data["owner"]["name"].stringValue
    let image = URL(string: data["pic"].stringValue)
        coverImageView.kf.setImage(with: image)
        backgroundImageView.kf.setImage(with: image)

详情页光标移动路径

现象:在详情页 播放 点赞 投币 收藏 和 不喜欢 五个按键下方是一排推荐视频
假设通过方向键在推荐视频向右翻,超过“不喜欢”按键 右下方的位置,此时按方向上键,光标无法移动
必须将光标先左移到上一排视图的位置才可上翻。
预期:光标在推荐视频在任何位置都可向上翻

Deleting video from "Watch Later" crashes

When deleting video from watch later list, the app crashes:

Could not cast value of type 'BilibiliLive.ToViewData' (0x102e42220) to 'BilibiliLive.FeedData' (0x102e469b8).

This is caused by changes in 79c321d

能否支持单视频循环播放啊?

在观看一些列表或者单一视频, 有时候需要循环播放同一个视频, 能否增加一个功能来支持单视频循环、列表循环等功能.

[功能建议] 导航栏内容优化、视频详情页背景、非推荐类视频选取

感谢团队,从产品角度来说提一些建议,
顶部导航栏“历史”和“稍后观看”是否可以考虑合并入“我的”?
原因:1.这两个项目是用户数据的体现,逻辑上属于“我的”;2.历史和稍后观看的使用时长低于导航栏目前现有一个单位的比例(2/6),本属于必要性强但频次低的项目。
视频背景的高斯模糊是否考虑增加一层半透明暗色背景
原因:由于部分视频封面较亮,作为背景时文字可读性不强,如果增加一层遮罩压暗,整体质感会有提升。
缺少推荐以外视频的启动机制
现象:在没有搜索和分区索引/排行的情况下,脱离其他设备,无法打开推荐内容以外的视频

怎么安装呢

大佬,想在ATV上安装 Bilibili客户端,奈何官方没有App。
没想到这里有代码,应该怎么安装到设备上呢? 求指引

image

另外,工程里似乎缺少标记的文件

Feeds的LoadMore判断似乎有问题

在最后一行没有铺满的情况下不会触发相关事件会导致无法加载
建议将
indexPath.row == _displayData.count - 1
修改为
indexPath.row >= _displayData.count - 2
提前进行加载
同时在这里判断finished变量似乎也会导致无法正常加载我直接移除这个条件后似乎工作正常
相关代码位置在
这里

How to refresh the video list

Thanks to the team, the video list page does not seem to be able to refresh actively, the previous version can refresh the page by pressing the siri button. but now the version seems to no longer support this function, can you tell me how to refresh the page?

设置二级菜单中的返回

在我的-设置中,如画质选择一类会打开子菜单的设置项,如果进入后不想修改了,均无法通过返回按键进行返回。

DateFormatter bug

Hi, just found you are using formater.dateFormat = "YYYY-MM-dd" in DateFormatter.swift, and the year should be yyyy.

播放失败

TVos 16
mater分支
点任意一个视频都显示请求失败,decodeFail

弹幕渲染渲染有差异

官方的弹幕渲染好像是描边,项目里是阴影,以及weight也有些细微差异

感恩开源,下班后有时间我把项目拉下来研究,先提个issue记录下

收藏页面无法通过返回按钮返回

直觉预期:从详情页不小心点到收藏-点击返回按钮
现象:返回不起作用,需要多次按⬇️方向键以翻到底部点击返回。
建议:希望将返回按钮在此页面绑定为返回

Danmu mask goes out of sync with the video due to wrong data from API

The danmu mask in BMaskProvider doesn't match for some video, such as
https://www.bilibili.com/video/BV11x4y1g7yw/
There's a delay for the mask, and the delay increases as we watch the video.
Here's a screenshot using the red mask layer.
image

The issue is that the API returned an FPS of 29 for the mask data, while the actual FPS is about 30:
https://api.bilibili.com/x/player/v2?aid=990156715&cid=961806418

"dm_mask":{"cid":961806418,"plat":0,"fps":29,"time":0,"mask_url":"//upos-sz-staticcos-cmask.bilivideo.com/cmaskboss/961806418_29_0.webmask?trid=3c23696d105148cf8ef19b8a1c1ee4ccB\u0026orderid=0,1\u0026logo=00000000"}

The length of the video is 1512490 milliseconds, and the number of mask frames we get is 45283, so that's 45283/1512 = 29.949.

The issue doesn't happen on bilibili web, so I suspect that they have a different implementation that doesn't rely on the API data.

I'll see if I can come up with a fix. BTW, this is an awesome project!

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.