Skip to main content

How to apply watermark on video in iOS

How to apply watermark on video in iOS

If you want to apply watermark to recorded video, you should use video.watermark property.

guard let watermark = UIImage(named: "YOUR_WATERMARK_IMAGE") else { return }
let offset = CGPoint(x: 20.0, y: 20.0)
let watermarkInfo = WatermarkInfo(image: watermark,
corner: .bottomLeft, offset: offset, targetNormalizedWidth: 0.2)
let video = Video(cameraDevice: cameraDevice)
player.use(input: camera, outputs: [playerView.uiView, video])
video.watermark = watermarkInfo
video.record(...)