Comments (12)
from phoenix.
@OverRide
public void onaddMedia() {
Phoenix.with()
.theme(PhoenixOption.THEME_DEFAULT)// 主题
.fileType(MimeType.ofImage())//显示的文件类型图片、视频、图片和视频
.maxPickNumber(10)// 最大选择数量
.minPickNumber(0)// 最小选择数量
.spanCount(4)// 每行显示个数
.enablePreview(true)// 是否开启预览
.enableCamera(true)// 是否开启拍照
.enableAnimation(true)// 选择界面图片点击效果
.enableCompress(true)// 是否开启压缩
.compressPictureFilterSize(1024)//多少kb以下的图片不压缩
.compressVideoFilterSize(2018)//多少kb以下的视频不压缩
.thumbnailHeight(160)// 选择界面图片高度
.thumbnailWidth(160)// 选择界面图片宽度
.enableClickSound(false)// 是否开启点击声音
.pickedMediaList(mMediaAdapter.getData())// 已选图片数据
.videoFilterTime(0)//显示多少秒以内的视频
.start(MainActivity.this, PhoenixOption.TYPE_PICK_MEDIA, REQUEST_CODE);
}
from phoenix.
数据库字段兼容性的问题,我看一下。
from phoenix.
发布下新版本吧
//图片/视频选择、预览、编辑与拍照
compile 'com.github.guoxiaoxing:phoenix:1.0.1'
from phoenix.
新版本已发
//图片/视频选择、预览、编辑与拍照
compile 'com.github.guoxiaoxing:phoenix:1.0.2'
//选填 - 图片压缩,开启功能:Phoenix.with().enableCompress(true),获取结果:MediaEntity.getCompressPath()
compile 'com.github.guoxiaoxing:phoenix-compress-picture:1.0.2'
//选填 - 视频压缩,开启功能:Phoenix.with().enableCompress(true),获取结果:MediaEntity.getCompressPath()
compile 'com.github.guoxiaoxing:phoenix-compress-video:1.0.2'
视频压缩库还在jcenter审核,如果用不到视频,添加前面的两个依赖即可。
from phoenix.
from phoenix.
from phoenix.
大兄弟咱明天过来了再看行不,我这边复现不了你这个问题。T_T
from phoenix.
好的!
from phoenix.
手动比心,哈哈,我要肥家看行尸走肉了。
from phoenix.
//图片/视频选择、预览、编辑与拍照
compile 'com.github.guoxiaoxing:phoenix:1.0.3'
已修复
from phoenix.
thanks...
from phoenix.
Related Issues (20)
- 调用这个方法就会崩掉pickedMediaList
- videoFilterTime()在华为P20 Pro还是不生效
- 怎么区分图片还是视频
- 同一个视频两次压缩后的大小不一致
- 录像的视频不能播放,弹窗死循环 HOT 1
- vivo手机编辑图片后回调异常 HOT 1
- 可不可以有办法把编辑功能关掉呢,就隐藏即可
- 华为mate20Pro拍照自动放大 HOT 1
- 请问项目是不是不维护了?
- 荣耀8A手机无法拍照,点击拍照,显示黑屏 HOT 1
- 最新版本的代码clone不下来额
- 三星g9550 后置摄像头拍照黑屏 HOT 1
- 拍照时可以屏蔽录像功能吗
- PhoenixOption选择TYPE_TAKE_PICTURE拍照后图片未被压缩
- Android10系统为什么图片都展示不出来! HOT 5
- 切换前置摄像头崩溃,定制机,Android_v_7.1.1 HOT 1
- videoFilterTime 无效
- 大屏手机/ 横屏手机 相机预览宽高比错误
- 录制视频失败,大小0B
- Harmony 2部分机型无法拍照/录制
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 phoenix.