Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not turn off audio #49

Open
kevin406972552 opened this issue Feb 3, 2021 · 0 comments
Open

Can not turn off audio #49

kevin406972552 opened this issue Feb 3, 2021 · 0 comments

Comments

@kevin406972552
Copy link

If audio mode is false.
fail log:
E/AndroidRuntime(18814): FATAL EXCEPTION: Thread-1373
E/AndroidRuntime(18814): Process: com.example.camera_with_rtmp_demo, PID: 18814
E/AndroidRuntime(18814): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaCodec.start()' on a null object reference
E/AndroidRuntime(18814): at com.pedro.encoder.BaseEncoder.initCodec(BaseEncoder.java:56)
E/AndroidRuntime(18814): at com.pedro.encoder.BaseEncoder.start(BaseEncoder.java:44)
E/AndroidRuntime(18814): at com.whelksoft.camera_with_rtmp.RtmpCameraConnector.startEncoders(RtmpCameraConnector.kt:243)
E/AndroidRuntime(18814): at com.whelksoft.camera_with_rtmp.RtmpCameraConnector.onConnectionSuccessRtmp(RtmpCameraConnector.kt:492)
E/AndroidRuntime(18814): at net.ossrs.rtmp.SrsFlvMuxer$2.run(SrsFlvMuxer.java:290)
E/AndroidRuntime(18814): at java.lang.Thread.run(Thread.java:818)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant