mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Don't implement Player.Listener from SubtitleView
We never register SubtitleView as a Player.Listener directly, it's always done via PlayerView. PiperOrigin-RevId: 447467037
This commit is contained in:
parent
f08fdf6ab2
commit
06d73e93e6
1 changed files with 1 additions and 7 deletions
|
|
@ -31,7 +31,6 @@ import android.widget.FrameLayout;
|
||||||
import androidx.annotation.Dimension;
|
import androidx.annotation.Dimension;
|
||||||
import androidx.annotation.IntDef;
|
import androidx.annotation.IntDef;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import com.google.android.exoplayer2.Player;
|
|
||||||
import com.google.android.exoplayer2.text.Cue;
|
import com.google.android.exoplayer2.text.Cue;
|
||||||
import com.google.android.exoplayer2.util.Util;
|
import com.google.android.exoplayer2.util.Util;
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
|
|
@ -42,7 +41,7 @@ import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/** A view for displaying subtitle {@link Cue}s. */
|
/** A view for displaying subtitle {@link Cue}s. */
|
||||||
public final class SubtitleView extends FrameLayout implements Player.Listener {
|
public final class SubtitleView extends FrameLayout {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An output for displaying subtitles.
|
* An output for displaying subtitles.
|
||||||
|
|
@ -150,11 +149,6 @@ public final class SubtitleView extends FrameLayout implements Player.Listener {
|
||||||
viewType = VIEW_TYPE_CANVAS;
|
viewType = VIEW_TYPE_CANVAS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCues(List<Cue> cues) {
|
|
||||||
setCues(cues);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the cues to be displayed by the view.
|
* Sets the cues to be displayed by the view.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue