Mute input video player in transformer demo

PiperOrigin-RevId: 483969411
(cherry picked from commit f1ca4f41b1)
This commit is contained in:
tofunmi 2022-10-26 15:01:30 +00:00 committed by microkatz
parent add9013df4
commit 36225d0ff9

View file

@ -507,6 +507,7 @@ public final class TransformerActivity extends AppCompatActivity {
inputPlayer.setMediaItem(inputMediaItem);
inputPlayer.prepare();
this.inputPlayer = inputPlayer;
inputPlayer.setVolume(0f);
ExoPlayer outputPlayer = new ExoPlayer.Builder(/* context= */ this).build();
outputPlayerView.setPlayer(outputPlayer);