Commit 8d7f474f by andrewlewis Committed by Oliver Woodman

Fix surfacedemo build

PiperOrigin-RevId: 273296236
parent dddce430
...@@ -223,8 +223,7 @@ public final class MainActivity extends Activity { ...@@ -223,8 +223,7 @@ public final class MainActivity extends Activity {
throw new IllegalStateException(); throw new IllegalStateException();
} }
player = new SimpleExoPlayer.Builder(getApplicationContext()).build(); player = new SimpleExoPlayer.Builder(getApplicationContext()).build();
player.setMediaItem(mediaSource); player.prepare(mediaSource);
player.prepare();
player.setPlayWhenReady(true); player.setPlayWhenReady(true);
player.setRepeatMode(Player.REPEAT_MODE_ALL); player.setRepeatMode(Player.REPEAT_MODE_ALL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment