How to change the libstreaming's videosource?

195 Views Asked by At

Everybody,I'm a young android developer,and now I have a requirement which is push my android phone's screen to my PC by rtsp. Now I have start my project base on libstreaming. But I found it's videosource must be camera.So how to change it?

this is the part that set the MediaRecorder's params

enter image description here

1

There are 1 best solutions below

0
On

you can try with following code

mMediaRecord.setVideoSource(MediaRecorder.VideoSource.SURFACE);

but you need to use Camera2, and API level need more than 21.