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

Archiving stream in my device, not save it in server #162

Closed
hoangphu2390 opened this issue Jan 20, 2018 · 2 comments
Closed

Archiving stream in my device, not save it in server #162

hoangphu2390 opened this issue Jan 20, 2018 · 2 comments

Comments

@hoangphu2390
Copy link

hoangphu2390 commented Jan 20, 2018

I have the same case as the problem at this link: #131
I know there is a solution using CustomVideoCapturer. Currently, I am handling MediaRecorder inside the int function startCapture () of the CustomVideoCapturer class. I'm not sure how to handle it properly? If my handle is not correct, can you please help me.
Thanks!!!

@marinaserranomontes
Copy link
Contributor

Hi @hoangphu2390 ,

To recorder the publisher stream, you have several options:

  • You can use the MediaProjection API to record the screen.
  • You can use the MediaRecorder, but please note, you don't need to use a CustomCapturer, you can setup the MediaRecorder in the Activity, and feed it with the input surfaces for the publisher.
  • You can use MediaCodec to directly save the publisher video frames using a video encoder. In this case, you will need to build your own capturer in that case.
    This last option is more difficult, so I recommend you to use MediaRecorder or MediaProjection.

@msach22
Copy link
Contributor

msach22 commented Mar 13, 2018

Closing due to inactivity. Please re-open if needed :)

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

3 participants