Class WebvttCssStyle

    • Constructor Detail

      • WebvttCssStyle

        public WebvttCssStyle()
        Deprecated.
    • Method Detail

      • setTargetId

        public void setTargetId​(String targetId)
        Deprecated.
      • setTargetTagName

        public void setTargetTagName​(String targetTag)
        Deprecated.
      • setTargetClasses

        public void setTargetClasses​(String[] targetClasses)
        Deprecated.
      • setTargetVoice

        public void setTargetVoice​(String targetVoice)
        Deprecated.
      • getSpecificityScore

        public int getSpecificityScore​(@Nullable
                                       String id,
                                       @Nullable
                                       String tag,
                                       Set<String> classes,
                                       @Nullable
                                       String voice)
        Deprecated.
        Returns a value in a score system compliant with the CSS Specificity rules.

        The score works as follows:

        • Id match adds 0x40000000 to the score.
        • Each class and voice match adds 4 to the score.
        • Tag matching adds 2 to the score.
        • Universal selector matching scores 1.

        See also CSS Cascading.

        Parameters:
        id - The id of the cue if present, null otherwise.
        tag - Name of the tag, null if it refers to the entire cue.
        classes - An array containing the classes the tag belongs to. Must not be null.
        voice - Annotated voice if present, null otherwise.
        Returns:
        The score of the match, zero if there is no match.
      • isLinethrough

        public boolean isLinethrough()
        Deprecated.
      • setLinethrough

        @CanIgnoreReturnValue
        public WebvttCssStyle setLinethrough​(boolean linethrough)
        Deprecated.
      • isUnderline

        public boolean isUnderline()
        Deprecated.
      • setUnderline

        @CanIgnoreReturnValue
        public WebvttCssStyle setUnderline​(boolean underline)
        Deprecated.
      • setBold

        @CanIgnoreReturnValue
        public WebvttCssStyle setBold​(boolean bold)
        Deprecated.
      • setItalic

        @CanIgnoreReturnValue
        public WebvttCssStyle setItalic​(boolean italic)
        Deprecated.
      • getFontFamily

        @Nullable
        public String getFontFamily()
        Deprecated.
      • setFontFamily

        @CanIgnoreReturnValue
        public WebvttCssStyle setFontFamily​(@Nullable
                                            String fontFamily)
        Deprecated.
      • getFontColor

        public int getFontColor()
        Deprecated.
      • setFontColor

        @CanIgnoreReturnValue
        public WebvttCssStyle setFontColor​(int color)
        Deprecated.
      • hasFontColor

        public boolean hasFontColor()
        Deprecated.
      • getBackgroundColor

        public int getBackgroundColor()
        Deprecated.
      • setBackgroundColor

        @CanIgnoreReturnValue
        public WebvttCssStyle setBackgroundColor​(int backgroundColor)
        Deprecated.
      • hasBackgroundColor

        public boolean hasBackgroundColor()
        Deprecated.
      • setFontSize

        @CanIgnoreReturnValue
        public WebvttCssStyle setFontSize​(float fontSize)
        Deprecated.
      • setFontSizeUnit

        @CanIgnoreReturnValue
        public WebvttCssStyle setFontSizeUnit​(@com.google.android.exoplayer2.text.webvtt.WebvttCssStyle.FontSizeUnit int unit)
        Deprecated.
      • getFontSizeUnit

        public @com.google.android.exoplayer2.text.webvtt.WebvttCssStyle.FontSizeUnit int getFontSizeUnit()
        Deprecated.
      • getFontSize

        public float getFontSize()
        Deprecated.
      • setRubyPosition

        @CanIgnoreReturnValue
        public WebvttCssStyle setRubyPosition​(@com.google.android.exoplayer2.text.span.TextAnnotation.Position int rubyPosition)
        Deprecated.
      • getRubyPosition

        public @com.google.android.exoplayer2.text.span.TextAnnotation.Position int getRubyPosition()
        Deprecated.
      • setCombineUpright

        @CanIgnoreReturnValue
        public WebvttCssStyle setCombineUpright​(boolean enabled)
        Deprecated.
      • getCombineUpright

        public boolean getCombineUpright()
        Deprecated.