Giter Club home page Giter Club logo

Comments (4)

CaiJingLong avatar CaiJingLong commented on September 18, 2024

可以考虑加入
不过视频这东西很容易破坏整体api的结构性,因为要同时支持ios/android两端的情况下,视频的大小不好控制,正常在手机中的图片目前最大的也不会超过10m

我的api中,对于文件/字节数组是懒加载,也就是真实获取Future<File>或bytes的时候再去native端生成,而ios端和android端目前是不一样的,ios端获取到的是一个PHAsset ,我需要利用PHLibrary中的方法读取到数据,写入ios的应用沙盒内,才能反馈给flutter端一个file/bytes

而android端是存在在数据库内的,我可以直接返回File的path地址给flutter端,不需要转存,如果仅仅是android端,这部分功能很容易实现,但牵涉到ios端以后如果想保持flutter端的api一致性就比较麻烦了

ios端的视频获取/储存方式我没有研究过,还不好说实际情况如何,因为一旦也牵扯到转存,视频这东西的大小会很影响获取速度

你有好的建议吗

from flutter_photo_manager.

CaiJingLong avatar CaiJingLong commented on September 18, 2024

我刚刚查看了一下 ios中Asset的定义是包含视频的,且目前我也是同样以图片的方式处理的
这部分从api中体现不出来

我后面看一下如果是视频我应该如何整合到api中

from flutter_photo_manager.

CaiJingLong avatar CaiJingLong commented on September 18, 2024

will use #3 to resolve bug and support video

from flutter_photo_manager.

CaiJingLong avatar CaiJingLong commented on September 18, 2024

finish in #4

from flutter_photo_manager.

Related Issues (20)

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.