Created
August 6, 2020 06:21
-
-
Save floriangbh/ced7143391204d43cfcc1664b0a3f35a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create builder | |
LocalCamera localCamera = new LocalCamera(surfaceView) | |
//Start recording | |
if (localCamera.prepareAudio() && localCamera.prepareVideo()) { | |
localCamera.startRecord() | |
} else { | |
/**This device cant init encoders, this could be for 2 reasons: The encoder selected doesnt support any configuration setted or your device hasnt a H264 or AAC encoder (in this case you can see log error valid encoder not found)*/ | |
} | |
//Stop recording | |
rtmpCamera1.stopStream() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment