Use monotonic system time for rendering timestamps. This is required now in Android 6.0 since these timestamps are propagated to the codec.

This commit is contained in:
Cameron Gutman
2015-08-17 18:40:25 -07:00
parent 932ce435b5
commit 7023760782
4 changed files with 18 additions and 14 deletions
@@ -83,6 +83,10 @@ public class MediaCodecHelper {
return false;
}
public static long getMonotonicMillis() {
return System.nanoTime() / 1000000L;
}
@TargetApi(Build.VERSION_CODES.KITKAT)
public static boolean decoderSupportsAdaptivePlayback(String decoderName, MediaCodecInfo decoderInfo) {