Code Monkey home page Code Monkey logo

dytt's Introduction

DYTT

电影天堂

GitHub release GitHub stars GitHub forks GitHub All Releases

第三方电影天堂React Native客户端V2.0

公告

😄已完成数据源更新解析,现在请求一切正常。

目录

免责声明

本项目仅供学习交流使用,不得用于其他商业行为,数据来源于第三方网站,与本人无关!

重点是交流讨论react native技术,而不是资源为什么不全,因为这是第三方的,我也没有上服务器,纯本地解析。

缘由

有很多小伙伴发邮件问我为什么之前的项目运行不起来。

其实这个是我自己的原因,之前做的时候没什么经验,很多时候就直接修改了第三方库,所以就运行不起来了

还有就是第三方api也做了很大的变动

react-native和其他第三方库都更新了许多,正好重新开始,把一些新特性都利用起来(比如context),完整的来做一个项目,这比单纯的学习看文章要有效的多

正常的app本来就是需要长期维护更新的,只不过由于是个人项目,很多时候完成一个阶段就会因为各种原因而被耽搁,精力有限实属无奈

特色

大概是全网个人影视类项目最漂亮、体验最好的了吧(下方有截图~)。

演示视频

(见过很多类似的第三方应用,功能算是出来了,但是界面一看就是程序员风格,不忍直视,毕竟一般都是做后台的才会做这些,天生就对UI和体验没什么感觉)

安装

github 项目地址

本项目适用于相关技术人员学习交流,请自行编译安装

git clone https://github.com/XboxYan/DYTT.git

cd DYTT

yarn

react-native run-android

下载

目前只有安卓版本下载,需要ios的可以自行编译安装

下载链接

二维码

(微信扫码可能不支持,建议用其他扫描工具或者直接用浏览器打开上面链接)

考虑到安全问题,暂不提供安装包,可通过上述方式安装,或者与我联系提供安装包

dytt.apk

android下载解压安装。ios自行编译安装。

安装包可能更新不及时,建议自行编译安装。

一般功能可通过热更新直接更新,无需重新更新安装包。

安装完成后需要杀掉后台重启,可以通过热更新升级

相关截图

安卓

更新提示

code-push

欢迎页

欢迎页

首页

首页

功能菜单

功能菜单

历史记录

历史记录

收藏

收藏

主题颜色

主题颜色

搜索

搜索

搜索结果

搜索结果

影片筛选

影片筛选

影片详情

影片详情

影片播放

影片播放

还未完成的还接下来要做的

  • 视频播放做全屏切换(已完成)
  • 没有适配ios,不过代码中没有使用安卓专有的库,理论上可以直接运行(可能有少部分需要适配),有兴趣的小伙伴可以fork下来自己适配一下
  • 会新增设置选项,进行网络设置,播放设置等(会参考其他视频软件的功能)(已完成)
  • 目前历史记录和收藏均保存在本地,意味着如果卸载app将导致数据丢失,如果可能的话,将来把数据保存在自己的服务器上
  • react-navigation在页面切换时略微卡顿,还有一个react-native-navigation,如果可能的话,可以用来替代react-navigation
  • 目前在网上找的api可能不够理想(已采用本地爬虫方式),如果谁有更好的设计和更好的api可以参考一下~如果有提供后台服务的就更好了
  • react-native确实性能略显不足,特别是长列表的情况,准备学习flutter,一种新的渲染方式(可以和web中的canvas类比)
  • 热更新功能(已完成)

联系方式

有什么问题可以与我联系

[email protected]

或者直接提 issue

打赏

精神支撑一下,给个 star

如果体验觉得还不错的话,大佬们可以随意打赏,金额不限

微信赞赏码

dytt's People

Contributors

singcl avatar xboxyan 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

dytt's Issues

支持TV

安装在TV上,没法操作,是否可以编一个支持安卓TV的版本

打包之后闪退

经过测试发现在页面中发出fetch请求,打包之后就会闪退,去掉fetch就能成功是为什么呢,请求的数据是https的

按照你的方法写了一个context,但是不能按照你的方式消费context

<Store.Provider
style={style}
value={{
themeColor : themeColor,
updateColor : this.updateColor.bind(this)
}}>
{this.props.children}
</Store.Provider>
上面是我的提供者

我在消费组件里面这样写
AddTower.contextType = Store;

然后我在消费组件里面用打印this.context 是一个空对象

但是我用react推荐的方式 <Store.Consumer>
{
context=>()
}
这种方式 就可以访问到我定义的themeColor

关于电视投屏

有没有小伙伴知道怎么实现向电视投屏?
好像没有找到关于这类的库。

iOSairplay

androidDLNA

你好, react-native-swiper的问题, 我用react-native-swiper

你好, react-native-swiper的问题, 我用react-native-swiper时,使用动态连接, indicator的小点index好像不对, 有时候不动. 看你的加载方式好像是没问题的. 不知道具体实现的时候是否也遇到了这个问题.
github上关于这个组件的问题很多.

热更新问题

   感谢作者的项目,我测试热更新点击下载的时候只走了log01 往下就不走了是怎么回事,log2控制台打印不了,,一直停留在正在努力更新中,请等待
   console.log("开始下载更新文件------------01>")
    LayoutAnimation.easeInEaseOut();
    this.setState({status: 1})//download
    const LocalPackage = await this.RemotePackage.download((progress) => {
        console.log("更新文件大小------------02>" + progress)
        this.setState({
            receivedBytes: progress.receivedBytes
        })
        Animated.timing(
            this.width,
            {
                toValue: parseFloat(progress.receivedBytes / progress.totalBytes).toFixed(2),
                duration: 150
            }
        ).start();
    })

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.