public class LogoConfig
extends java.lang.Object
implements com.longtailvideo.jwplayer.utils.Jsonable
Modifier and Type | Class and Description |
---|---|
static class |
LogoConfig.Builder |
static interface |
LogoConfig.LogoPosition |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOGO_POSITION_BOTTOM_LEFT
Logo position: Bottom-Left.
|
static java.lang.String |
LOGO_POSITION_BOTTOM_RIGHT
Logo position: Bottom-Right.
|
static java.lang.String |
LOGO_POSITION_CONTROL_BAR
Logo position: Control-bar
|
static java.lang.String |
LOGO_POSITION_TOP_LEFT
Logo position: Top-Left.
|
static java.lang.String |
LOGO_POSITION_TOP_RIGHT
Logo position: Top-Right.
|
Constructor and Description |
---|
LogoConfig(LogoConfig.Builder builder) |
LogoConfig(LogoConfig src) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFile() |
boolean |
getHide() |
java.lang.String |
getLink() |
int |
getMargin() |
java.lang.String |
getPosition() |
static LogoConfig |
parseJson(org.json.JSONObject json) |
static LogoConfig |
parseJson(java.lang.String jsonStr) |
void |
setFile(java.lang.String file) |
void |
setHide(java.lang.Boolean hide) |
void |
setLink(java.lang.String link) |
void |
setMargin(java.lang.Integer margin) |
void |
setPosition(java.lang.String position) |
org.json.JSONObject |
toJson() |
public static final java.lang.String LOGO_POSITION_TOP_RIGHT
public static final java.lang.String LOGO_POSITION_TOP_LEFT
public static final java.lang.String LOGO_POSITION_BOTTOM_RIGHT
public static final java.lang.String LOGO_POSITION_BOTTOM_LEFT
public static final java.lang.String LOGO_POSITION_CONTROL_BAR
public LogoConfig(LogoConfig src)
public LogoConfig(LogoConfig.Builder builder)
public void setFile(java.lang.String file)
file
- The URL of an external JPG, PNG or GIF image to be used as watermark (e.g. /assets/logo.png). We recommend using 24 bit PNG images with transparency.public void setHide(java.lang.Boolean hide)
hide
- When this option is set to true, the logo will automatically show and hide along with the other player controls.public void setLink(java.lang.String link)
link
- The URL to visit when the watermark image is clicked. Clicking a logo will have no affect unless this is configured.public void setMargin(java.lang.Integer margin)
margin
- The distance, in pixels, of the logo from the edges of the display.public void setPosition(java.lang.String position)
position
- This sets the corner in which to display the watermark. Must be one of the LOGO_POSITION_ constants.@Nullable public java.lang.String getFile()
public boolean getHide()
@Nullable public java.lang.String getLink()
public int getMargin()
@NonNull public java.lang.String getPosition()
public org.json.JSONObject toJson()
toJson
in interface com.longtailvideo.jwplayer.utils.Jsonable
public static LogoConfig parseJson(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONException
public static LogoConfig parseJson(java.lang.String jsonStr)