mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Use a resolution that should be encode-able on all devices
The image in the test has a resolution of 1x1 which some device will reject. PiperOrigin-RevId: 649039791
This commit is contained in:
parent
0b96f4372f
commit
b9d101f090
1 changed files with 5 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import android.view.SurfaceView;
|
|||
import androidx.media3.common.Effect;
|
||||
import androidx.media3.common.MediaItem;
|
||||
import androidx.media3.effect.GlEffect;
|
||||
import androidx.media3.effect.Presentation;
|
||||
import androidx.media3.exoplayer.ExoPlayer;
|
||||
import androidx.media3.transformer.Composition;
|
||||
import androidx.media3.transformer.CompositionPlayer;
|
||||
|
|
@ -346,7 +347,10 @@ public class VideoTimestampConsistencyTest {
|
|||
prependVideoEffects(
|
||||
editedMediaItems,
|
||||
/* effects= */ ImmutableList.of(
|
||||
(GlEffect) (context, useHdr) -> timestampRecordingShaderProgram));
|
||||
(GlEffect) (context, useHdr) -> timestampRecordingShaderProgram,
|
||||
// Use a resolution that all devices should support.
|
||||
Presentation.createForWidthAndHeight(
|
||||
/* width= */ 320, /* height= */ 240, Presentation.LAYOUT_SCALE_TO_FIT)));
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
ExportTestResult result =
|
||||
|
|
|
|||
Loading…
Reference in a new issue