1

I am playing around with Intel-inde and am running into trouble with CameraCapture and live streaming.

I've loaded the external JARs and the 4 armeabi .so files into my project. I've made a basic program basically copying the CameraStreamerActivity.java and have this code:

camera = createCamera();
capture = new CameraCapture(new AndroidMediaObjectFactory(getApplicationContext()), progressListener);
capture.createPreview(findViewById(R.id.surfaceView), camera);

I am getting these errors:

10-08 18:29:42.459: I/dalvikvm(9062): Could not find method android.opengl.EGL14.eglGetCurrentContext, referenced from method com.intel.inde.mp.android.AndroidMediaObjectFactory.getCurrentEglContext

10-08 18:29:42.459: W/dalvikvm(9062): VFY: unable to resolve static method 526: Landroid/opengl/EGL14;.eglGetCurrentContext ()Landroid/opengl/EGLContext;

Would appreciate some help as to what is causing this. Thank you.

nyc0202034
  • 113
  • 1
  • 3
  • 14
  • What device, and what version of Android, are you using? – fadden Oct 09 '14 at 00:17
  • I'm using a galaxy S2 and Android 4.2 You're right, only 4.3+ is supported by this project. Do you know if there's any way to get this functionality working in 4.2? – nyc0202034 Oct 09 '14 at 04:02
  • Things got a lot easier and more stable in 4.3, which is why Grafika (https://github.com/google/grafika) also requires 4.3. In older releases it's very difficult to get good performance without using non-public native APIs... you could send the camera output to YUV ByteBuffers and work from that, but you'll be operating at a few frames per second while taxing the device heavily. The Surface input to MediaCodec introduced in 4.3 makes many interesting things possible. – fadden Oct 09 '14 at 06:12
  • Hi nyc0202034, did you manage to make it working? – Marlon Jan 29 '15 at 15:04
  • Hi Marlon, I ended up converting my project to 4.3 :) – nyc0202034 Feb 11 '15 at 19:46

0 Answers0