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

Stream from camera to RTMP and record(.MP4) locally at the same time in android #1620

Open
penmatsa opened this issue Oct 22, 2024 · 1 comment

Comments

@penmatsa
Copy link

I want to live stream to RTMP and record locally at the same time in android. Can you point to an example or suggest the best approach to achieving that in Android?

@pedroSG94
Copy link
Owner

pedroSG94 commented Oct 23, 2024

Hello,

You have code example in the app that support it:
https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt

Compile the app example and open that example. You can stream to RTMP using the central button and record using the left button. You can do it at the same time.

All examples support it so you can use the example that fit better for your case.

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

2 participants