Class SkinConfig
- java.lang.Object
-
- com.longtailvideo.jwplayer.configuration.SkinConfig
-
- All Implemented Interfaces:
com.longtailvideo.jwplayer.utils.Jsonable
public class SkinConfig extends java.lang.Object implements com.longtailvideo.jwplayer.utils.Jsonable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSkinConfig.Builder
-
Constructor Summary
Constructors Constructor Description SkinConfig(SkinConfig src)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetControlBarBackground()java.lang.StringgetControlBarIcons()java.lang.StringgetControlBarIconsActive()java.lang.StringgetControlBarText()java.lang.StringgetMenusBackground()java.lang.StringgetMenusText()java.lang.StringgetMenusTextActive()java.lang.StringgetName()java.lang.StringgetTimeSliderProgress()java.lang.StringgetTimeSliderRail()java.lang.StringgetTooltipsBackground()java.lang.StringgetTooltipsText()java.lang.StringgetUrl()static SkinConfigparseJson(java.lang.String jsonStr)static SkinConfigparseJson(org.json.JSONObject json)voidsetControlBarBackground(java.lang.String controlBarBackground)voidsetControlBarIcons(java.lang.String controlBarIcons)voidsetControlBarIconsActive(java.lang.String controlBarIconsActive)voidsetControlBarText(java.lang.String controlBarText)voidsetMenusBackground(java.lang.String menusBackground)voidsetMenusText(java.lang.String menusText)voidsetMenusTextActive(java.lang.String menusTextActive)voidsetName(java.lang.String name)voidsetTimeSliderProgress(java.lang.String timeSliderProgress)voidsetTimeSliderRail(java.lang.String timeSliderRail)voidsetTooltipsBackground(java.lang.String tooltipsBackground)voidsetTooltipsText(java.lang.String tooltipsText)voidsetUrl(java.lang.String url)org.json.JSONObjecttoJson()
-
-
-
Constructor Detail
-
SkinConfig
public SkinConfig(SkinConfig src)
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
- Parameters:
name- The name of your custom skin to use for styling the player. If you are specifying skin.url, you must specify skin.name, which must match the class name in your CSS file.
-
setUrl
public void setUrl(java.lang.String url)
- Parameters:
url- If using an external CSS file to style your player, this must be specified here.
-
setControlBarText
public void setControlBarText(java.lang.String controlBarText)
- Parameters:
controlBarText- The color of any plain text in the control bar, such as the time.
-
setControlBarIcons
public void setControlBarIcons(java.lang.String controlBarIcons)
- Parameters:
controlBarIcons- The default, inactive color of all icons in the control bar. This option also controls the color of the play, pause, and replay icons in the inactive and complete states.
-
setControlBarIconsActive
public void setControlBarIconsActive(java.lang.String controlBarIconsActive)
- Parameters:
controlBarIconsActive- The color of hovered or selected icons in the control bar.
-
setControlBarBackground
public void setControlBarBackground(java.lang.String controlBarBackground)
- Parameters:
controlBarBackground- The background color of the control bar and the volume slider. The default background is transparent.
-
setTimeSliderProgress
public void setTimeSliderProgress(java.lang.String timeSliderProgress)
- Parameters:
timeSliderProgress- The color of the bar in the time slider filled in from the beginning of the video through the current position. The buffer region of the control bar is 50% of the opacity of this color. The color of the volume slider is also controlled by this option.
-
setTimeSliderRail
public void setTimeSliderRail(java.lang.String timeSliderRail)
- Parameters:
timeSliderRail- The color of the base of the timeslider, known as the rail.
-
setMenusText
public void setMenusText(java.lang.String menusText)
- Parameters:
menusText- The color of inactive, default text in menus and the Next Up overlay.
-
setMenusTextActive
public void setMenusTextActive(java.lang.String menusTextActive)
- Parameters:
menusTextActive- The color of hovered or selected text in menus. This option also controls the text color in the Discover overlay and the hover state text color in the Next Up overlay.
-
setMenusBackground
public void setMenusBackground(java.lang.String menusBackground)
- Parameters:
menusBackground- The background color of menus and the Next Up overlay.
-
setTooltipsText
public void setTooltipsText(java.lang.String tooltipsText)
- Parameters:
tooltipsText- The text color of tooltips.
-
setTooltipsBackground
public void setTooltipsBackground(java.lang.String tooltipsBackground)
- Parameters:
tooltipsBackground- The background color of tooltips.
-
getName
@Nullable public java.lang.String getName()
- Returns:
- The name of your custom skin to use for styling the player. If you are specifying skin.url, you must specify skin.name, which must match the class name in your CSS file.
-
getUrl
@Nullable public java.lang.String getUrl()
- Returns:
- If using an external CSS file to style your player, this must be specified here.
-
getControlBarText
@NonNull public java.lang.String getControlBarText()
- Returns:
- The color of any plain text in the control bar, such as the time.
-
getControlBarIcons
@NonNull public java.lang.String getControlBarIcons()
- Returns:
- The default, inactive color of all icons in the control bar. This option also controls the color of the play, pause, and replay icons in the inactive and complete states.
-
getControlBarIconsActive
@NonNull public java.lang.String getControlBarIconsActive()
- Returns:
- The color of hovered or selected icons in the control bar.
-
getControlBarBackground
@NonNull public java.lang.String getControlBarBackground()
- Returns:
- The background color of the control bar and the volume slider. The default background is transparent.
-
getTimeSliderProgress
@NonNull public java.lang.String getTimeSliderProgress()
- Returns:
- The color of the bar in the time slider filled in from the beginning of the video through the current position. The buffer region of the control bar is 50% of the opacity of this color. The color of the volume slider is also controlled by this option.
-
getTimeSliderRail
@NonNull public java.lang.String getTimeSliderRail()
- Returns:
- The color of the base of the timeslider, known as the rail.
-
getMenusText
@NonNull public java.lang.String getMenusText()
- Returns:
- The color of inactive, default text in menus and the Next Up overlay.
-
getMenusTextActive
@NonNull public java.lang.String getMenusTextActive()
- Returns:
- The color of hovered or selected text in menus. This option also controls the text color in the Discover overlay and the hover state text color in the Next Up overlay.
-
getMenusBackground
@NonNull public java.lang.String getMenusBackground()
- Returns:
- The background color of menus and the Next Up overlay.
-
getTooltipsText
@NonNull public java.lang.String getTooltipsText()
- Returns:
- The text color of tooltips.
-
getTooltipsBackground
@NonNull public java.lang.String getTooltipsBackground()
- Returns:
- The background color of tooltips.
-
parseJson
public static SkinConfig parseJson(org.json.JSONObject json) throws org.json.JSONException
- Throws:
org.json.JSONException
-
parseJson
public static SkinConfig parseJson(java.lang.String jsonStr)
-
toJson
public org.json.JSONObject toJson()
- Specified by:
toJsonin interfacecom.longtailvideo.jwplayer.utils.Jsonable
-
-