Skip to content

Commit

Permalink
fix aacmuxer block
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Oct 20, 2023
1 parent 86f3933 commit 6f98f00
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ allprojects {
}
}
dependencies {
implementation 'com.github.pedroSG94.RootEncoder:library:2.3.0'
implementation 'com.github.pedroSG94.RootEncoder:library:2.3.1'
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ public void onClick(View view) {
try {
if (!rtmpFromFile.isRecording()) {
if (prepare()) {
rtmpFromFile.setLoopMode(true);
button.setText(R.string.stop_button);
rtmpFromFile.startStream(etUrl.getText().toString());
seekBar.setMax(Math.max((int) rtmpFromFile.getVideoDuration(),
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ apply plugin: 'org.jetbrains.dokka'
buildscript {
ext.kotlin_version = '1.9.10'
ext.library_group = "com.github.pedroSG94"
ext.version_code = 230
ext.version_name = "2.3.0"
ext.version_code = 231
ext.version_name = "2.3.1"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ public void onVideoFormat(@NonNull MediaFormat mediaFormat) {
recordController.setVideoFormat(mediaFormat, !audioEnabled);
}
};

private final DecoderInterface decoderInterface = new DecoderInterface() {

private int trackFinished = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public void recordVideo(ByteBuffer videoBuffer, MediaCodec.BufferInfo videoInfo)
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
public void recordAudio(ByteBuffer audioBuffer, MediaCodec.BufferInfo audioInfo) {
if (status == Status.RECORDING) {
Log.i(TAG, "s: " + sampleRate + ", c: " + channels);
updateFormat(this.audioInfo, audioInfo);
write(audioBuffer, this.audioInfo);
//we need duplicate buffer to avoid problems with the buffer
write(audioBuffer.duplicate(), this.audioInfo);
}
}

Expand Down

0 comments on commit 6f98f00

Please sign in to comment.