| | |
| | | boolean mCreated = false; |
| | | boolean mIsPlaying = false; |
| | | |
| | | |
| | | |
| | | /** Called when the activity is first created. */ |
| | | @Override |
| | | public void onCreate(Bundle icicle) { |
| | |
| | | //mCreated = createStreamingMediaPlayer(getResources().getAssets(), mSourceString); |
| | | //#todo ok |
| | | mCreated = RtspFaceNative.createPlayer(1, "rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/main/av_stream"); |
| | | mCreated = RtspFaceNative.createPlayer(2, "rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/main/av_stream"); |
| | | //mCreated = RtspFaceNative.createPlayer(2, "rtsp://admin:admin12345@192.168.1.70:554/h264/ch1/main/av_stream"); |
| | | //mCreated = createPlayer(1, "rtsp://192.168.1.56:8554"); |
| | | |
| | | byte[] arr = new byte[5]; |
| | | arr[0] = 3; arr[1] = 4; arr[2] = 5; |
| | | RtspFaceNative.getFaceList(1, arr); |
| | | RtspFaceNative.setFaceCallback(1, "com/bsk/zhangbo/demoforbsk/util/RtspFaceNative", "faceCallBack"); |
| | | |
| | | //byte[] arr = new byte[5]; |
| | | //arr[0] = 3; arr[1] = 4; arr[2] = 5; |
| | | //RtspFaceNative.getFaceList(1, arr); |
| | | |
| | | } |
| | | } |
| | |
| | | /** Load jni .so on initialization */ |
| | | static { |
| | | System.loadLibrary("rtspface"); |
| | | System.loadLibrary("opencv_java3"); |
| | | } |
| | | |
| | | // VideoSink abstracts out the difference between Surface and SurfaceTexture |