Custom Watermarks
The basic configuration described in the preceding sections provides
section-level watermark control. That is, the details of which
watermarks to use and where they are to appear in the video frame is
determined at section level (often, in fact, in the root section, so
that all videos in a publication get the same watermarks). It is not
possible for different videos in the same section to have different
watermarks. You can allow users to completely disable watermarking on
specific videos by setting the disable-field
attribute, but that is all.
It is, however, possible to enable control at the individual video level by adding a set of relations to the video content type. You add one relation type for each watermark position that you want to use. For the top left watermark position, for example, you need to add something like this to your video content type:
<relation-type name="Top-Left" max="1"> <watermarks id="TopLeft" xmlns="http://xmlns.escenic.com/2010/video"/> <ui:label>Top Left Watermark</ui:label> <allow-content-types> <ref-content-type name="watermark" /> </allow-content-types> </relation-type>
Make sure that:
-
The
relation-type
element has amax
constraint attribute set to1
. -
The
watermarks
element belongs to thehttp://xmlns.escenic.com/2010/video
namespace. -
The
watermarks
element'sid
attribute matches the watermark ID used for this position in your section parameters. -
The
allow-content-types
constraint is correctly set to only allow watermark content items in the relation.
With watermark relations defined in this way, CUE users can control the watermarks on individual videos. Section-level watermark configurations then effectively function as default settings. When a video content item is first saved in CUE, the watermarks specified at section level are added to the video and appear in the watermark relations that have been defined. The user can then change the default settings by dragging watermark content items into or out of the watermark relations.
Note that you cannot use custom watermarks in some positions and fixed watermarks in others. If, for example, you add a watermark relation in the top left position as in the example shown above, then this will become the only position in which watermarks can be displayed. Setting a top right watermark at the section level, for example, will not work. If you want to be able to display watermarks in the top right corner, you must add a top right watermark relation as well. So you have to choose between a basic configuration providing fixed watermarks in all defined positions, or a custom watermarks configuration providing custom watermarks in all defined positions.
To change the watermark of a published video in CUE, the video must first be set back into a draft state. The watermark can then be updated and the video republished.