mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix surfacedemo build
PiperOrigin-RevId: 273296236
This commit is contained in:
parent
dddce4307b
commit
8d7f474fa6
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue