Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show video track selectors on PlayerControlView #972

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@
public class PlayerControlView extends FrameLayout {

static {
MediaLibraryInfo.registerModule("media3.ui");
MediaLibraryInfo.registerModule("media3.ui"); // copybara:media3-only
// copybara:exo-only MediaLibraryInfo.registerModule("goog.exo.ui");
xeinebiu marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down Expand Up @@ -261,10 +262,10 @@ public interface OnFullScreenModeChangedListener {
// LINT.IfChange(playback_speeds)
private static final float[] PLAYBACK_SPEEDS =
new float[] {0.25f, 0.5f, 0.75f, 1f, 1.25f, 1.5f, 2f};

// LINT.ThenChange("../../../../res/values/strings.xml:playback_speeds")

private static final int SETTINGS_PLAYBACK_SPEED_POSITION = 0;
private static final int SETTINGS_AUDIO_TRACK_SELECTION_POSITION = 1;

private static final int SETTINGS_VIDEO_TRACK_SELECTION_POSITION = 2;

private final PlayerControlViewLayoutManager controlViewLayoutManager;
Expand Down