Skip to content

Latest commit

 

History

History
73 lines (64 loc) · 3.12 KB

Watermark.md

File metadata and controls

73 lines (64 loc) · 3.12 KB

MediaRequest command parameters

Parameter Desciption Type Default value
text Text watermark configuration. See description below for details. Object N/A
image Image watermark configuration. See description below for details. Object N/A
watermarktext Text watermark with default location. Overridden by text property String null

Watermark text object

Parameter Desciption Type Default value
watermarkText Text to display in a watermark. String N/A
position Watermark position. See description below for details. Object see details below
opacity Opacity of the watermark. May be given as a number between 0 and 1. Number 0.42
fontSize Watermark font size in whatever units. Number 42

Watermark image object

Parameter Desciption Type Default value
imageFile File name of the image to display in the watermark relative to server's watermark storage directory. String N/A
position Watermark position. See description below for details. Object see details below

Watermark position object

Property Description Values Default value
vertical Object describing vetrical positioning Object with align and margin properties
vertical.align Vertical alignment "top", "center" or "bottom" "center"
vertical.margin Position of the edge of the watermark relative to the screen edge as percentage of frame height. Ignored for align="center" String, e.g. "42%" N/A
horizontal Object describing horizontal positioning Object with align and margin properties
horizontal.align Horizontal alignment "left", "center" or "right" "center"
horizontal.margin Position of the edge of the watermark relative to the screen edge as percentage of frame width. Ignored for align="center" String, e.g. "42%" N/A

Examples

{
  watermarktext: "Hello, World!"
}
{
  text: {
    watermarkText: "Property of VideoGorillas",
    opacity: 0.42,
    fontSize: 42,
    position: {
      vertical: {
        align: "bottom",
        margin: "10%"
      },
      horizontal: {
        align: "center"
      }
    }
  },  
  image: {
    imageFile: "VG-logo.png",
    position: {
      vertical: {
        align: "top",
        margin: "10%"
      },
      horizontal: {
        align: "right",
        margin: "20%"
      }
    }
  }
}