google/grafika

ContinuousCaptureActivity not working on HUAWEI (and HONOR) devices

falary1 opened this issue · 1 comments

hi everyone,
i'm trying to use that function in my app. I ended up with a code partly from my own but still using the same CircularEncoderBuffer class from grafika. After some tests, i noticed that it's not working on the P9 from Huawei, and also on the Honor 7x (from Huawei too). I guess i will probably encounter the same issue on multiple devices from that brand. So i took the original code from grafika to run some other tests and i experiment exactly the same behavior on these devices :

  • It's working if we try to save video before to reach the 'end' of the circularBuffer (i mean before 7 seconds)
  • If we try to save the video after that, the video result is corrupt (almost full green) and not readable, on my app also
  • I got almost no error in the logcat, only thing i got here when i start the activity is
    01-11 16:00:59.181 22766-22766/com.google.grafika E/Camera: Camera new cameraInitNormal:0
    which not really helping me, because camera seems to work (and all the process before 7seconds) and all permissions are granted
  • Everything is working fine on 3 differents devices from Samsung (j3,s5,s7)

So i don't even know where to look, I started to hunt the error but for now i cannot find anything (the decoder output continue to feed the buffer normally and the saving process with MediaMuxer shows no error, moreover the created video file got the right size, according to the size of the buffer we set, but it's just corrupt...).

Are there some people who have succeded using that function on Huawei devices? Can you help me on that, i'm really stuck with that weird issue..

Thanks!

I upgraded my huawei p9 from android 6.0 to android 7.0.. Now it's working, and i got another phone, LG k8 with android 6.0 and it's working too. So is it only on Android 6.0 on huawei? Maybe Because of the skin EMUI 4.1?