Skip to content

Commit

Permalink
修复sample一些参数小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mabeijianxi committed Oct 12, 2016
1 parent eb4542c commit be3f527
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions SmallVideoLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 3
versionName "1.0.2"
versionCode 5
versionName "1.0.4"
}

buildTypes {
Expand All @@ -19,10 +19,11 @@ android {
}
}
publish {

userOrg = 'mabeijianxi'//bintray.com用户名
groupId = 'com.mabeijianxi'//jcenter上的路径
artifactId = 'small-video-record'//项目名称
publishVersion = '1.0.2'//版本号
publishVersion = '1.0.4'//版本号
desc = '利用FFmpeg来小视频录制与压缩处理!'//描述,不重要
website = 'https://github.com/mabeijianxi/small-video-record'//网站,不重要
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ private void initData() {
MediaRecorderBase.mVideoBitrate=mediaRecorderConfig.getVideoBitrate();
MediaRecorderBase.CAPTURE_THUMBNAILS_TIME=mediaRecorderConfig.getCaptureThumbnailsTime();
MediaRecorderBase.doH264Compress=mediaRecorderConfig.isDoH264Compress();

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public final class MediaRecorderConfig implements Parcelable {
*/
private final int captureThumbnailsTime;


private MediaRecorderConfig(Buidler buidler) {
this.RECORD_TIME_MAX = buidler.RECORD_TIME_MAX;
this.RECORD_TIME_MIN = buidler.RECORD_TIME_MIN;
Expand Down Expand Up @@ -177,6 +178,7 @@ public static class Buidler {
*/
private int captureThumbnailsTime = 1;


public MediaRecorderConfig build() {
return new MediaRecorderConfig(this);
}
Expand Down Expand Up @@ -263,7 +265,6 @@ public Buidler videoBitrate(int VIDEO_BITRATE) {
this.VIDEO_BITRATE = VIDEO_BITRATE;
return this;
}

}

}
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.mabeijianxi.smallvideo"
minSdkVersion 14
targetSdkVersion 22
versionCode 3
versionName "1.0.2"
versionCode 5
versionName "1.0.4"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void go(View c) {
MediaRecorderConfig config = new MediaRecorderConfig.Buidler()
.doH264Compress(true)
.smallVideoWidth(480)
.smallVideoHeight(320)
.smallVideoHeight(360)
.recordTimeMax(6 * 1000)
.maxFrameRate(20)
.minFrameRate(8)
Expand Down

0 comments on commit be3f527

Please sign in to comment.