Allow playing mixed input types.
These input types include images, video without audio, and video with audio. While playing these inputs, the video frame presentation is always synced with audio. PiperOrigin-RevId: 613921719
This commit is contained in:
parent
f9032a5893
commit
16ef146482
@ -720,8 +720,11 @@ public final class CompositingVideoSinkProvider
|
||||
|
||||
@Override
|
||||
public boolean queueBitmap(Bitmap inputBitmap, TimestampIterator timestampIterator) {
|
||||
return checkStateNotNull(videoFrameProcessor)
|
||||
.queueInputBitmap(inputBitmap, timestampIterator);
|
||||
if (checkStateNotNull(videoFrameProcessor).queueInputBitmap(inputBitmap, timestampIterator)) {
|
||||
lastBufferPresentationTimeUs = timestampIterator.getLastTimestampUs();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user