Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17d7ea49 authored by Yu Shan Emily Lau's avatar Yu Shan Emily Lau
Browse files

There is a know issue in PV regarding the video size return. Need to put a 1...

There is a know issue in PV regarding the video size return. Need to put a 1 second sleep before we get the video dimension
parent 9d7b2fa8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -214,6 +214,7 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram
            Log.v(TAG, "before getduration");
            mOutputDuration = mediaPlayer.getDuration();
            Log.v(TAG, "get video dimension");
            Thread.sleep(1000);
            mOutputVideoHeight = mediaPlayer.getVideoHeight();
            mOutputVideoWidth = mediaPlayer.getVideoWidth();
            //mOutputVideoHeight = CodecTest.videoHeight(outputFilePath);