Search in sources :

Example 1 with LegacyPlayerControlView

use of androidx.media3.ui.LegacyPlayerControlView in project media by androidx.

the class MainActivity method onResume.

@Override
public void onResume() {
    super.onResume();
    if (isOwner && player == null) {
        initializePlayer();
    }
    setCurrentOutputView(nonFullScreenView);
    LegacyPlayerControlView playerControlView = Assertions.checkNotNull(this.playerControlView);
    playerControlView.setPlayer(player);
    playerControlView.show();
}
Also used : LegacyPlayerControlView(androidx.media3.ui.LegacyPlayerControlView)

Aggregations

LegacyPlayerControlView (androidx.media3.ui.LegacyPlayerControlView)1