Class SubtitleViewWrapper

    • Constructor Detail

      • SubtitleViewWrapper

        public SubtitleViewWrapper​(Context context)
        Deprecated.
      • SubtitleViewWrapper

        public SubtitleViewWrapper​(Context context,
                                   @Nullable
                                   AttributeSet attrs)
        Deprecated.
      • SubtitleViewWrapper

        public SubtitleViewWrapper​(Context context,
                                   @Nullable
                                   AttributeSet attrs,
                                   int defStyleAttr)
        Deprecated.
      • SubtitleViewWrapper

        public SubtitleViewWrapper​(Context context,
                                   @Nullable
                                   AttributeSet attrs,
                                   int defStyleAttr,
                                   int defStyleRes)
        Deprecated.
    • Method Detail

      • bindToPlayerController

        public void bindToPlayerController​(@NonNull
                                           PlayerController playerController)
        Deprecated.
        Binds to the provided PlayerController. Internally it creates a SubtitlesView, adds it to itself and sets it in the PlayerController with the corresponding id.

        You should call unbindFromPlayerController() when you don't need the SubtitlesView anymore.

        Parameters:
        playerController - the PlayerController
      • unbindFromPlayerController

        public void unbindFromPlayerController()
        Deprecated.
        Removes the SubtitlesView and unsets it in the PlayerController.
      • setMeasuredVideoDimensions

        public void setMeasuredVideoDimensions​(int width,
                                               int height)
        Deprecated.
        Informs the subtitle render context about the video dimensions. This is usually the video Surface dimensions.
        Parameters:
        width - width in pixels
        height - height in pixels
      • getSubtitlesView

        @Nullable
        public SubtitlesView getSubtitlesView()
        Deprecated.
        Returns the underlying SubtitlesView if any, null otherwise.
        Returns:
        the underlying SubtitlesView or null