Package 

Interface TextTrackStyle

  • All Implemented Interfaces:

    
    public interface TextTrackStyle
    
                        

    The text track style API.

    • Constructor Detail

    • Method Detail

      • setFontColor

         abstract void setFontColor(int color)

        Sets text font color

        Parameters:
        color - - font color @see Colors
      • getFontColor

         abstract int getFontColor()

        Returns current font color

      • setBackgroundColor

         abstract void setBackgroundColor(int color)

        Sets background color

        Parameters:
        color - - background color
      • setWindowColor

         abstract void setWindowColor(int color)

        Sets background color

        Parameters:
        color - - window color
      • getWindowColor

         abstract int getWindowColor()

        Returns current window color

      • setEdgeColor

         abstract void setEdgeColor(int color)

        Sets edge color

        Parameters:
        color - - edge color
      • getEdgeColor

         abstract int getEdgeColor()

        Returns current edge color

      • setFontSize

         abstract void setFontSize(int fontSize)

        Sets font size in range 50% - 300% of default font size

        Parameters:
        fontSize - - font size value in range: 50% - 300% of default font size
      • getFontSize

         abstract int getFontSize()

        Returns current font size in range 50% - 300% of default font size

      • setMarginLeft

         abstract void setMarginLeft(int marginLeft)

        Sets text left margin in range 0% - 100% of subtitle view width

        Parameters:
        marginLeft - - text left margin in range 0% - 100% of subtitle view width
      • setMarginTop

         abstract void setMarginTop(int marginTop)

        Sets text top margin in range 0% - 100% of subtitle view height

        Parameters:
        marginTop - - text top margin in range 0% - 100% of subtitle view height
      • getMarginLeft

         abstract int getMarginLeft()

        Returns left margin value in range: 0% - 100% from subtitle view width

      • getMarginTop

         abstract int getMarginTop()

        Returns top margin value in range: 0% - 100% from subtitle view height

      • reset

         abstract void reset()

        Sets default values of colors, sizes, layout, styles of subtitles (from the subtitle description metadata)