mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix surfacedemo build
PiperOrigin-RevId: 273296236
This commit is contained in:
parent
dddce4307b
commit
8d7f474fa6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user