Skip to content

Commit

Permalink
update release 1.0.3 Fix the issue that the front camera screen is up…
Browse files Browse the repository at this point in the history
…side down
  • Loading branch information
luohaohaha committed Jun 23, 2022
1 parent c063a79 commit 724e81b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
// implementation project(path: ':rtmpx_library')
implementation 'io.github.luohaohaha:rtmpx:1.0.2'
implementation 'io.github.luohaohaha:rtmpx:1.0.3'


/* implementation(name:"rtmpx-${version}", ext:'aar')
Expand Down
Binary file added app/libs/rtmpx-1.0.3.aar
Binary file not shown.
3 changes: 2 additions & 1 deletion app/src/main/java/com/rtmpx/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public void onExposureLock(boolean lock) {
private Config buildConfig() {
Config config = new Config.ConfigBuilder()
.withBitRate(1000 * 2000)
.withPublishUrl("rtmp://192.168.33.38:1935/test/live")
.withPublishUrl("rtmp://192.168.50.170:18888/test/live")
.withFrameRate(30).withVideoWidth(1080).withVideoHeight(1920)
.withRecordVideo(false).withRecordVideoPath("sdcard/dump.mp4")
.build();
Expand All @@ -221,6 +221,7 @@ public void onClick(View v) {
switch (v.getId()) {
case R.id.start_preview:
startPreview();
mPreview.switchCamera(0);
break;
case R.id.start_publish:
togglePublish();
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true

android.injected.testOnly=false
version=1.0.2
versionCode=2
version=1.0.3
versionCode=3

signing.keyId=AC245F5F
signing.password=8790141lh
signing.secretKeyRingFile=/Volumes/MacDev/Backup/maven/private.pgp
signing.secretKeyRingFile=/Volumes/MacDev/maven/private.pgp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ private void sendStopRecordMessage() {
private void stopRecordPcm() {
mRecordStarted.set(false);
if (mAudioRecorder != null) {
mAudioRecorder.stop();
try {
mAudioRecorder.stop();
} catch (Exception e) {
e.printStackTrace();
}
}
if (null != mAudioRecordHandler) {
mAudioRecordHandler.removeCallbacksAndMessages(null);
Expand Down

0 comments on commit 724e81b

Please sign in to comment.