Add receive time and frame number to video decoder callbacks

This commit is contained in:
Cameron Gutman
2017-06-10 16:22:27 -07:00
parent 8c09154183
commit 0074848a4e
5 changed files with 9 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ public abstract class VideoDecoderRenderer {
public abstract void stop();
public abstract int submitDecodeUnit(byte[] frameData, int frameLength);
public abstract int submitDecodeUnit(byte[] frameData, int frameLength, int frameNumber, long receiveTimeMs);
public abstract void cleanup();

View File

@@ -60,9 +60,9 @@ public class MoonBridge {
}
}
public static int bridgeDrSubmitDecodeUnit(byte[] frameData, int frameLength) {
public static int bridgeDrSubmitDecodeUnit(byte[] frameData, int frameLength, int frameNumber, long receiveTimeMs) {
if (videoRenderer != null) {
return videoRenderer.submitDecodeUnit(frameData, frameLength);
return videoRenderer.submitDecodeUnit(frameData, frameLength, frameNumber, receiveTimeMs);
}
else {
return DR_OK;