I'm using ExoPlayer lib and i need to record the live stream video and save it directly into SD card.
This is what I have so far:
mediaRecorder = new MediaRecorder();
mediaRecorder.setAudioSource(???????);
mediaRecorder.setVideoSource(???????);
mediaRecorder.setOutputFile("/sdcard/myvideo.mp4");
mediaRecorder.setMaxDuration(60000); // Set max duration 60 sec.
mediaRecorder.setMaxFileSize(5000000); // Set max file size 5M
any help