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 {
throw new IllegalStateException();
}
player = new SimpleExoPlayer.Builder(getApplicationContext()).build();
player.setMediaItem(mediaSource);
player.prepare();
player.prepare(mediaSource);
player.setPlayWhenReady(true);
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