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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user