public interface

SubtitleController.Anchor

 androidx.media2.player.subtitle.SubtitleController.Anchor

Overview

Subtitle anchor, an object that is able to display a subtitle renderer, e.g. a VideoView.

Summary

Methods
public LoopergetSubtitleLooper()

Anchors provide the looper on which all track visibility changes (track.show/hide, setSubtitleWidget) will take place.

public voidsetSubtitleWidget(SubtitleTrack.RenderingWidget subtitleWidget)

Anchor should use the supplied subtitle rendering widget, or none if it is null.

Methods

public void setSubtitleWidget(SubtitleTrack.RenderingWidget subtitleWidget)

Anchor should use the supplied subtitle rendering widget, or none if it is null.

public Looper getSubtitleLooper()

Anchors provide the looper on which all track visibility changes (track.show/hide, setSubtitleWidget) will take place.