| | |
| | | |
| | | import com.bsk.zhangbo.demoforbsk.util.RtspFaceNative; |
| | | |
| | | import cn.com.basic.face.service.SurvalanceMng; |
| | | import cn.com.basic.face.service.SurveillanceMng; |
| | | import cn.com.basic.face.widget.surveilance.SurveillanceBottomListView; |
| | | |
| | | import com.lidroid.xutils.view.annotation.ViewInject; |
| | | |
| | | |
| | | /** |
| | | * Created by zhangbo on 2017/2/15. |
| | | */ |
| | | |
| | | public class SurveillanceFragment extends BaseFragment { |
| | | |
| | |
| | | RtspFaceNative.createPlayer(1, "rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/sub/av_stream"); |
| | | RtspFaceNative.createPlayer(2, "rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/sub/av_stream"); |
| | | } else { |
| | | // fragment_supervisory_enter_camera.setVideoURI(Uri.parse("rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/sub/av_stream")); |
| | | // fragment_supervisory_enter_camera.requestFocus(); |
| | | // fragment_supervisory_enter_camera.start(); |
| | | // fragment_supervisory_exit_camera.setVideoURI(Uri.parse("rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/main/av_stream")); |
| | | // fragment_supervisory_exit_camera.requestFocus(); |
| | | // fragment_supervisory_exit_camera.start(); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | } |
| | | |
| | | private void reloadBottomList() { |
| | | SurvalanceMng.getInstance().findSupervisoryBottomList(fragment_supervisory_bottom_visitor_radio_button.isChecked()); |
| | | SurveillanceMng.getInstance().findSupervisoryBottomList(fragment_supervisory_bottom_visitor_radio_button.isChecked()); |
| | | } |
| | | |
| | | } |