WatermarkTimestamp
Used to configure timestamp watermark.
class WatermarkTimestamp implements AgoraSerializable {
const WatermarkTimestamp({this.fontSize, this.fontFilePath, this.strokeWidth, this.format});
final int? fontSize;
final String? fontFilePath;
final int? strokeWidth;
final String? format;
factory WatermarkTimestamp.fromJson(Map<String, dynamic> json) => _$WatermarkTimestampFromJson(json);
@override
Map<String, dynamic> toJson() => _$WatermarkTimestampToJson(this);
}
- Since
- Available since v4.6.2.
Note: (Linux only)
Properties
- fontSize
- Font size of the timestamp. Default is 10.
- fontFilePath
- Path to the font file for the timestamp. Default is
NULL. The font file must be in .ttf format. If not set, the SDK uses the system default font (if available).Note: If used asynchronously, copy the path to memory that will not be released. - strokeWidth
- Stroke width of the timestamp. Default is 1.
- format
- Format of the timestamp. Default is
%F %X. The format follows the C standard library functionstrftime. Seestrftime.Note: If used asynchronously, copy the format string to memory that will not be released.