mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Release player in e2e playback tests.
Not releasing the player means the playback thread keeps running and also keeps its entire allocated playback buffer. PiperOrigin-RevId: 330958821
This commit is contained in:
parent
033232784a
commit
267cc53770
2 changed files with 2 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ public class Mp4PlaybackTest {
|
|||
player.prepare();
|
||||
player.play();
|
||||
TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED);
|
||||
player.release();
|
||||
|
||||
DumpFileAsserts.assertOutput(
|
||||
ApplicationProvider.getApplicationContext(),
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ public class TsPlaybackTest {
|
|||
player.prepare();
|
||||
player.play();
|
||||
TestExoPlayer.runUntilPlaybackState(player, Player.STATE_ENDED);
|
||||
player.release();
|
||||
|
||||
DumpFileAsserts.assertOutput(
|
||||
ApplicationProvider.getApplicationContext(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue