Comments (4)
可以考虑加入
不过视频这东西很容易破坏整体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.
我刚刚查看了一下 ios中Asset的定义是包含视频的,且目前我也是同样以图片的方式处理的
这部分从api中体现不出来
我后面看一下如果是视频我应该如何整合到api中
from flutter_photo_manager.
will use #3 to resolve bug and support video
from flutter_photo_manager.
finish in #4
from flutter_photo_manager.
Related Issues (20)
- [Bug] When trying to fetch 100 images, it returns latest 99 images. only happening in specific devices. HOT 3
- [Bug report] requestPermissionExtend() is always denied if only the READ_MEDIA_IMAGES permission is used, and the READ_MEDIA_VIDEO permission is missing in the manifest. HOT 8
- photo throw an error when build project:A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction HOT 2
- [BUG] Android 14 READ_MEDIA_VISUAL_USER_SELECTED BUG HOT 2
- [Bug report] containsLivePhotos be deprecated, how to disable live photo in future? HOT 7
- [Bug report] Semantic Issue (Xcode): Use of undeclared identifier 'PHAssetResourceTypePhotoProxy' HOT 1
- [Bug report] PhotoManager does not allow you to view certain albums or images.
- [Feature request] HOT 4
- [Bug report] progressHandler not sending progress value when loading file in shared album. HOT 5
- When obtaining album images and videos, only the images will be displayed and the content of the videos will not be displayed HOT 9
- [How to use] Sort result like Camera Roll in iOS HOT 5
- [Bug report] photo_manager 3.2.1: unable to build Android apk on Github Action HOT 3
- [Bug report] Cannot compile Andorid app because of "Unresolved reference: PermissionDelegate29" HOT 1
- How to get size image HOT 1
- When allowing select images and videos permission in Android 14, permission state is always denied. HOT 4
- [Bug report] Stuck on running gradle task HOT 5
- [Bug report] wechat_assets_picker引入的photo_manager 编译报错 HOT 3
- [Feature request] To get AssetEntity with local asset path HOT 1
- [Bug report] The new project failed to compile HOT 1
- The requested file name is already in use.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_photo_manager.