12

I am trying to run Google sample to record 10 second video using MeadiaRecorder inside my application. But when playing back recorder video it is getting corrupt.

  • Firstly it plays full audio;
  • Then plays the first first frame of video;
  • Video freezes and nothing happening.

When I browsed the file in explorer it was showing the length to 59 minutes whereas I only stored for 10 seconds and video is not playing as well when trying to play in computer as well.

I am using https://github.com/googlesamples/android-Camera2Video library as a sample and running same code over the device without any change.

It working fine on all other device except for Samsung devices(J7, S5, S6, S8.. etc.)

In above library there is an open issue as well but still there's no solution provide.

Nak Android Dev
  • 707
  • 1
  • 8
  • 24

0 Answers0