mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-06 16:06:10 +00:00
Add receive time and frame number to video decoder callbacks
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user