setWatermark method
Set the watermark of the streamer. By default, watermarks are not turned on.
Parameter:
type
network, file
image
Watermark the image. If the value is null, it is equivalent to disabling the watermark
x
Unified X coordinate of the watermark position. Value range: [0,1]
y
Unified Y coordinate of the watermark position. Value range: [0,1]
scale
The zoom of the watermark image, which can range from 0 to 1 floating-point number.
Return:
'0' success, more information please see V2TXLiveCode
Implementation
Future<V2TXLiveCode> setWatermark(String type, String image, double x,
double y, double scale) async {
var result = await _channel.invokeMethod('setWatermark', {
"type": type,
"image": image,
"x": x.toString(),
"y": y.toString(),
"scale": scale.toString()
});
return _liveCodeWithResult(result);
}