android boofcv ip camera manipulation using videoview

狂风中的少年 提交于 2019-12-13 00:40:51

问题


I have successfully stream ip camera on an android phone using rtsp using this code:

public class MainActivity extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        VideoView video= (VideoView) findViewById(R.id.videoview);

        String viewSource = "rtsp://192.168.1.........";

        video.setVideoURI(Uri.parse(viewSource));
        video.setMediaController(new MediaController(this));
        video.requestFocus();
        video.start();

    }

}

My question is that is it possible to manipulate videoview on android using boofcv which is using ip camera? Because on boofcv samples it is using a built in camera on android phone. If someone is kind here can help me please.

来源:https://stackoverflow.com/questions/27212057/android-boofcv-ip-camera-manipulation-using-videoview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!