-
-
Notifications
You must be signed in to change notification settings - Fork 759
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
Switching between Rtmp stream audio and video #1486
Comments
Hello, I think that for your case you should stream normally using camera and microphone with RtmpCamera2 for example. //enable disable video
if (genericCamera1.glInterface.isVideoMuted) {
genericCamera1.glInterface.unMuteVideo()
} else {
genericCamera1.glInterface.muteVideo()
}
//enable disable audio
if (genericCamera1.isAudioMuted) {
genericCamera1.enableAudio()
} else {
genericCamera1.disableAudio()
} |
thinks Im try |
How can GenericCamera1 turn off and on videos? I am using GenericCamera1 |
java.lang.RuntimeException: You can't do it. You are not using Opengl |
Hello, As you can see in the crash you need use OpenGlView as view to do that instead of SurfaceView or TextureView |
I wrote the project based on "oldApi" in the demo, and this method cannot control the display and hiding of the video? |
That method turns your preview screen and stream black. |
I currently have a feature
When I open the program, I only push audio content. When I need it, I can push a video with sound by clicking a button. When I don't need it, I can close the video and only push audio content
Excuse me, how can this method be implemented using Java code?
I found that sdk has the "RtmpOnlyAudio" method, but calling this method will result in the inability to push videos
The text was updated successfully, but these errors were encountered: