Android : How to record a live stream video using ExoPlayer lib

2.3k views Asked by At

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

0

There are 0 answers