public class WatermarkInput extends AbstractModel
header, skipSign
Constructor and Description |
---|
WatermarkInput() |
WatermarkInput(WatermarkInput source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getDefinition()
Get Watermarking template ID.
|
Float |
getEndTimeOffset()
Get End time offset of a watermark in seconds.
|
Float |
getStartTimeOffset()
Get Start time offset of a watermark in seconds.
|
String |
getSvgContent()
Get SVG content, which contains up to 2,000,000 characters.
|
String |
getTextContent()
Get Text content, which contains up to 100 characters.
|
void |
setDefinition(Long Definition)
Set Watermarking template ID.
|
void |
setEndTimeOffset(Float EndTimeOffset)
Set End time offset of a watermark in seconds.
|
void |
setStartTimeOffset(Float StartTimeOffset)
Set Start time offset of a watermark in seconds.
|
void |
setSvgContent(String SvgContent)
Set SVG content, which contains up to 2,000,000 characters.
|
void |
setTextContent(String TextContent)
Set Text content, which contains up to 100 characters.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public WatermarkInput()
public WatermarkInput(WatermarkInput source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition
- Watermarking template ID.public String getTextContent()
public void setTextContent(String TextContent)
TextContent
- Text content, which contains up to 100 characters. Set this parameter only when the watermark type is text.
VOD does not support adding text watermarks on screenshots.public String getSvgContent()
public void setSvgContent(String SvgContent)
SvgContent
- SVG content, which contains up to 2,000,000 characters. Set this parameter only when the watermark type is SVG.
VOD does not support adding SVG watermarks on screenshots.public Float getStartTimeOffset()
public void setStartTimeOffset(Float StartTimeOffset)
StartTimeOffset
- Start time offset of a watermark in seconds. If this parameter is left blank or 0 is entered, the watermark will appear upon the first video frame.
public Float getEndTimeOffset()
public void setEndTimeOffset(Float EndTimeOffset)
EndTimeOffset
- End time offset of a watermark in seconds.
Copyright © 2024. All rights reserved.