Giter Site home page Giter Site logo

biliatv's Introduction

biliATV

为了搞智能家居需要一个家庭中枢而购买的 AppleTV 从此一发不可收拾 😂

国内大部分资源可以直接用 LazyCat 解决

但是LazyCat的喵哩喵哩满足不了我的需求 所以打算自己再写一个 一个完整的bilibili客户端

todo:

  • 页面

    • 登录
    • 我的动态
    • 我的追番
    • 我的收藏
    • 我的历史
    • 番剧timeline
    • 番剧页面
    • 视频详情
    • 视频详情V2
    • UP主页面 80%
    • 热门视频(B站首页)
    • 搜索
    • 设置界面
    • 重构UI框架
  • 视频地址解析与播放

    • 解析视频地址
    • 解析高清视频地址(默认被我设置为1080p,番剧解析不稳定原因不明清晰度忽高忽低)
    • 解决番剧高清解析偶尔失败的问题
    • 自定义视频清晰度
    • 播放视频(使用 DanMuPlayer )
    • 视频地址过期重新获取视频地址并继续播放
    • 剧集连播
    • 记录播放位置 再次打开提示还原
    • 将播放位置提交到B站的历史记录中 方便其他设备继续播放
    • 加载弹幕

关于私有API

项目使用了UIWebView在tvOS中UIWebView是私有API 需要手动修改Xcode文件来解锁,否则无法编译

参考: tvOSBrowser

文件位置:

Availability.h 在AppleTV位于: Xcode > Contents > Developer > Platforms > AppleTVOS.platform > Developer > SDKs > AppleTVOS.sdk > usr > include
Availability.h 在AppleTV模拟器位于: Xcode > Contents > Developer > Platforms > AppleTVSimulator.platform > Developer > SDKs > AppleTVSimulator.sdk > usr > include

将以下内容 :

#define __TVOS_UNAVAILABLE                    __OS_AVAILABILITY(tvos,unavailable)
#define __TVOS_PROHIBITED                     __OS_AVAILABILITY(tvos,unavailable)

替换为 :

#define __TVOS_UNAVAILABLE_NOTQUITE                    __OS_AVAILABILITY(tvos,unavailable)
#define __TVOS_PROHIBITED_NOTQUITE                     __OS_AVAILABILITY(tvos,unavailable)

安装方法

由于使用了submodule所以请不要直接下载zip

git clone https://github.com/xioxin/biliATV.git
cd biliATV && sh build.sh

感谢

截图

许可证

GPL-3.0

biliatv's People

Contributors

xioxin avatar

Watchers

Yobotech avatar

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.