public class SkinConfig
extends java.lang.Object
implements com.longtailvideo.jwplayer.utils.Jsonable
Modifier and Type | Class and Description |
---|---|
static class |
SkinConfig.Builder |
Constructor and Description |
---|
SkinConfig(SkinConfig src) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getControlBarBackground() |
java.lang.String |
getControlBarIcons() |
java.lang.String |
getControlBarIconsActive() |
java.lang.String |
getControlBarText() |
java.lang.String |
getMenusBackground() |
java.lang.String |
getMenusText() |
java.lang.String |
getMenusTextActive() |
java.lang.String |
getName() |
java.lang.String |
getTimeSliderProgress() |
java.lang.String |
getTimeSliderRail() |
java.lang.String |
getTooltipsBackground() |
java.lang.String |
getTooltipsText() |
java.lang.String |
getUrl() |
static SkinConfig |
parseJson(org.json.JSONObject json) |
static SkinConfig |
parseJson(java.lang.String jsonStr) |
void |
setControlBarBackground(java.lang.String controlBarBackground) |
void |
setControlBarIcons(java.lang.String controlBarIcons) |
void |
setControlBarIconsActive(java.lang.String controlBarIconsActive) |
void |
setControlBarText(java.lang.String controlBarText) |
void |
setMenusBackground(java.lang.String menusBackground) |
void |
setMenusText(java.lang.String menusText) |
void |
setMenusTextActive(java.lang.String menusTextActive) |
void |
setName(java.lang.String name) |
void |
setTimeSliderProgress(java.lang.String timeSliderProgress) |
void |
setTimeSliderRail(java.lang.String timeSliderRail) |
void |
setTooltipsBackground(java.lang.String tooltipsBackground) |
void |
setTooltipsText(java.lang.String tooltipsText) |
void |
setUrl(java.lang.String url) |
org.json.JSONObject |
toJson() |
public SkinConfig(SkinConfig src)
public void setName(java.lang.String name)
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.public void setUrl(java.lang.String url)
url
- If using an external CSS file to style your player, this must be specified here.public void setControlBarText(java.lang.String controlBarText)
controlBarText
- The color of any plain text in the control bar, such as the time.public void setControlBarIcons(java.lang.String controlBarIcons)
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.public void setControlBarIconsActive(java.lang.String controlBarIconsActive)
controlBarIconsActive
- The color of hovered or selected icons in the control bar.public void setControlBarBackground(java.lang.String controlBarBackground)
controlBarBackground
- The background color of the control bar and the volume slider. The default background is transparent.public void setTimeSliderProgress(java.lang.String timeSliderProgress)
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.public void setTimeSliderRail(java.lang.String timeSliderRail)
timeSliderRail
- The color of the base of the timeslider, known as the rail.public void setMenusText(java.lang.String menusText)
menusText
- The color of inactive, default text in menus and the Next Up overlay.public void setMenusTextActive(java.lang.String menusTextActive)
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.public void setMenusBackground(java.lang.String menusBackground)
menusBackground
- The background color of menus and the Next Up overlay.public void setTooltipsText(java.lang.String tooltipsText)
tooltipsText
- The text color of tooltips.public void setTooltipsBackground(java.lang.String tooltipsBackground)
tooltipsBackground
- The background color of tooltips.@Nullable public java.lang.String getName()
@Nullable public java.lang.String getUrl()
@NonNull public java.lang.String getControlBarText()
@NonNull public java.lang.String getControlBarIcons()
@NonNull public java.lang.String getControlBarIconsActive()
@NonNull public java.lang.String getControlBarBackground()
@NonNull public java.lang.String getTimeSliderProgress()
@NonNull public java.lang.String getTimeSliderRail()
@NonNull public java.lang.String getMenusText()
@NonNull public java.lang.String getMenusTextActive()
@NonNull public java.lang.String getMenusBackground()
@NonNull public java.lang.String getTooltipsText()
@NonNull public java.lang.String getTooltipsBackground()
public static SkinConfig parseJson(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONException
public static SkinConfig parseJson(java.lang.String jsonStr)
public org.json.JSONObject toJson()
toJson
in interface com.longtailvideo.jwplayer.utils.Jsonable