Let's consider configuring automatic generation of “Now Playing” captions. We will use the automation rules mechanism «Actions» of the Skylark server.
Let's create a graphic composition for a captions template.
Graphic composition comprises three elements:
Set the External type of parametrization in the ProgTitle element settings. This will allow to set text in the ProgTitle field during playback. Save the graphic composition, give it any name, for example “You_are_watching_GR”.
Now let's define which elements of the main playlist will have the “Now Playing” caption.
Let's say the caption will only be displayed on those playlist elements that have the “prog” value in the Type column. This will be the criteria for distinguishing the needed programs from commercials and fillers.
As an example, we will use the Comment column text for a caption. Note that when placing a clip into the playlist, media base fields data are automatically placed into the corresponding columns.
We need to create a rule, according to which, the Skylark server will play the template graphic composition in certain playlist lines, simultaneously receiving the Comment column value of the current line of the main playlist.
Configuring Actions for a program channel is implemented from the Administrator Control Panel. Login to the console is implemented locally from the server or from any computer in the network at http://server_ip:7901. Login the console as an administrator.
After the login to the control console, click Manage at the left menu. Find the Program Outputs tab. Open the Actions tab in the window of the required program channel and click Playlist events. Click Add action to open a window for creating the rule.
Specify the following settings in the Action configuration section:
Set the conditions for triggering the rule in the Action condition field. Specify the following settings:
It is necessary to configure the Action parameters section for the Play clip action. Note that hovering ParamN fields displays hints.
Parameter | Description |
---|---|
Param1 | Set the number of a graphic playlist that will play the caption. |
Param2 | Enter the name of a template graphic composition exactly as in the media base. |
Param4 | Set the IN point for the graphic composition, in frames. In our case the IN point matches the start point, so set “0”. |
Param5 | Set the OUT point for the graphic composition. Calculate the graphic composition duration in frames and enter this value. |
Param6 | Calculate duration of the graphic composition in frames and enter the value into this field. |
Param10 | Configuring parametrization of a graphic composition. Setting the value insertion from the main playlist columns into the graphic composition. This will allow the caption to identify the current program. The Param10 value must look like “element@value” - name of the graphic composition element for inserting and the inserted value, respectively. Press … near the entry field to open a drop-down list and select the name of a column in the main playlist that will contain the program names. In our case it's the Comment column. After pressing OK, the $(comment) value will be inserted into the entry field. Now, add “ProgTitle@” before the appeared value (“ProgTitle” is the name of a text element of the template graphic composition, and “@” is a separator in the name-value pair). Thus, the Param10 field value in our case must look like: ProgTitle@$(comment). If over one key-parameter value requires to be transferred, they must be separated with @. For example: param1@val1@param2@val2. |
Param11 | Set the action in case of triggering - «PLAY» |
Configuring is finished. Press OK in the rule editing window and click Apply changes at the page top. The corresponding program channel will be reloaded, the created automation rule will be applied and executed by the server during playlist execution.