[英]How to change the libstreaming's videosource?
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. 大家,我是一位年轻的android开发人员,现在我有一个要求,那就是通过rtsp将android手机的屏幕推送到我的PC上。 Now I have start my project base on libstreaming. 现在,我基于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 这是设置MediaRecorder参数的部分
you can try with following code 您可以尝试以下代码
mMediaRecord.setVideoSource(MediaRecorder.VideoSource.SURFACE);
but you need to use Camera2, and API level need more than 21. 但您需要使用Camera2,并且API级别需要超过21。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.