Giter VIP home page Giter VIP logo

Comments (12)

yz1309 avatar yz1309 commented on August 24, 2024

1111

from phoenix.

yz1309 avatar yz1309 commented on August 24, 2024

@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.

sucese avatar sucese commented on August 24, 2024

数据库字段兼容性的问题,我看一下。

from phoenix.

yz1309 avatar yz1309 commented on August 24, 2024

发布下新版本吧
//图片/视频选择、预览、编辑与拍照
compile 'com.github.guoxiaoxing:phoenix:1.0.1'

from phoenix.

sucese avatar sucese commented on August 24, 2024

新版本已发

//图片/视频选择、预览、编辑与拍照
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.

yz1309 avatar yz1309 commented on August 24, 2024

2

from phoenix.

yz1309 avatar yz1309 commented on August 24, 2024

3

from phoenix.

sucese avatar sucese commented on August 24, 2024

大兄弟咱明天过来了再看行不,我这边复现不了你这个问题。T_T

from phoenix.

yz1309 avatar yz1309 commented on August 24, 2024

好的!

from phoenix.

sucese avatar sucese commented on August 24, 2024

手动比心,哈哈,我要肥家看行尸走肉了。

from phoenix.

sucese avatar sucese commented on August 24, 2024

//图片/视频选择、预览、编辑与拍照
compile 'com.github.guoxiaoxing:phoenix:1.0.3'

已修复

from phoenix.

yz1309 avatar yz1309 commented on August 24, 2024

thanks...

from phoenix.

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.