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 ID of a watermarking template.
|
Float |
getEndTimeOffset()
Get End time offset of a watermark in seconds.
|
RawWatermarkParameter |
getRawParameter()
Get Custom watermark parameter, which is valid if `Definition` is 0.
|
Float |
getStartTimeOffset()
Get Start time offset of a watermark in seconds.
|
String |
getSvgContent()
Get SVG content of up to 2,000,000 characters.
|
String |
getTextContent()
Get Text content of up to 100 characters.
|
void |
setDefinition(Long Definition)
Set ID of a watermarking template.
|
void |
setEndTimeOffset(Float EndTimeOffset)
Set End time offset of a watermark in seconds.
|
void |
setRawParameter(RawWatermarkParameter RawParameter)
Set Custom watermark parameter, which is valid if `Definition` is 0.
|
void |
setStartTimeOffset(Float StartTimeOffset)
Set Start time offset of a watermark in seconds.
|
void |
setSvgContent(String SvgContent)
Set SVG content of up to 2,000,000 characters.
|
void |
setTextContent(String TextContent)
Set Text content of 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
- ID of a watermarking template.public RawWatermarkParameter getRawParameter()
public void setRawParameter(RawWatermarkParameter RawParameter)
RawParameter
- Custom watermark parameter, which is valid if `Definition` is 0.
This parameter is used in highly customized scenarios. We recommend you use `Definition` to specify the watermark parameter preferably.
Custom watermark parameter is not available for screenshot.public String getTextContent()
public void setTextContent(String TextContent)
TextContent
- Text content of up to 100 characters. This field is required only when the watermark type is text.
Text watermark is not available for screenshot.public String getSvgContent()
public void setSvgContent(String SvgContent)
SvgContent
- SVG content of up to 2,000,000 characters. This field is required only when the watermark type is `SVG`.
SVG watermark is not available for screenshot.public Float getStartTimeOffset()
public void setStartTimeOffset(Float StartTimeOffset)
StartTimeOffset
- Start time offset of a watermark in seconds. If this parameter is left empty 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.