MediaRecorder Corrupt Video Recording Samsung : <p>I am trying to run Google sample to record 10 second video using <code>MeadiaRecorder</code> inside my application. But when playing back recorder video it is getting corrupt.</p>

<ul>
<li>Firstly it plays full audio;</li>
<li>Then plays the first first frame of video;</li>
<li>Video freezes and nothing happening.</li>
</ul>

<p>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.</p>

<p>I am using <a href="https://github.com/googlesamples/android-Camera2Video" rel="noreferrer">https://github.com/googlesamples/android-Camera2Video</a> library as a sample and running same code over the device without any change.</p>

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

<p>In above library there is an <a href="https://github.com/googlesamples/android-Camera2Video/issues/24" rel="noreferrer">open issue</a> as well but still there's no solution provide.</p>
