Fix the asset and dump file names for the standalone Webvtt-HLS test

PiperOrigin-RevId: 580125493
This commit is contained in:
jbibik 2023-11-07 03:59:37 -08:00 committed by Copybara-Service
parent 63bda3b001
commit 089910546f
7 changed files with 4 additions and 3 deletions

View file

@ -45,7 +45,7 @@ public final class HlsPlaybackTest {
ShadowMediaCodecConfig.forAllSupportedMimeTypes();
@Test
public void webvttSubtitles() throws Exception {
public void webvttStandaloneSubtitlesFile() throws Exception {
Context applicationContext = ApplicationProvider.getApplicationContext();
CapturingRenderersFactory capturingRenderersFactory =
new CapturingRenderersFactory(applicationContext);
@ -59,13 +59,14 @@ public final class HlsPlaybackTest {
player.setVideoSurface(new Surface(new SurfaceTexture(/* texName= */ 1)));
PlaybackOutput playbackOutput = PlaybackOutput.register(player, capturingRenderersFactory);
player.setMediaItem(MediaItem.fromUri("asset:///media/hls/webvtt/multivariant_playlist.m3u8"));
player.setMediaItem(
MediaItem.fromUri("asset:///media/hls/standalone-webvtt/multivariant_playlist.m3u8"));
player.prepare();
player.play();
TestPlayerRunHelper.runUntilPlaybackState(player, Player.STATE_ENDED);
player.release();
DumpFileAsserts.assertOutput(
applicationContext, playbackOutput, "playbackdumps/hls/one_sec_with_subs.dump");
applicationContext, playbackOutput, "playbackdumps/hls/standalone-webvtt.dump");
}
}