Class SubtitlesViewComponent<T extends View>

All Implemented Interfaces:

public abstract class SubtitlesViewComponent<T extends View> extends PlayerViewPlugin.SingleViewPlayerViewComponent<T>
This is a PlayerViewPlugin.PlayerViewComponent that will be automatically used when you are using a PlayerView.

You can use this component to get access the View that renders the subtitles, for instance, if you need to apply an offset to it when player controls overlap.

To access the component and then the view, you can use:

     SubtitlesViewComponent component = playerView.getComponent(SubtitlesViewComponent.class);
     View subtitlesView = component.getView();

  • Constructor Details

    • SubtitlesViewComponent

      public SubtitlesViewComponent()