This section provides an overview of how to manually configure programming events using SCTE-224.

To configure an event like blackout for a given audience, you will need to configure the following SCTE-224 resources:

- Media element
- Audience
- Viewing Policy
- Policy
- Media Point

## Configure a Media element

A **Media element** represents any form of on-demand, time-shifted and linear content. It will be mostly used to describe program event data for linear type of content (namely, a live channel).

Following SCTE-224 standard, a Media element is the top-level, global element which contains a collection of MediaPoint elements. In other words, a Media element contains all the scheduling information: at a given time and/or based on in-band SCTE-35 signaling, a certain policy shall be applied or removed for instance.

To configure a Media element, follow these steps:

1. Select the **Media** tab.

2. Select **Add** to add a media resource.

3. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">Media ID</td>
         <td style="text-align: left">Recommended syntax: <code>/{content_Provider_name}/media/{channel_distribution_name}</code><br>Example: <code>/provider/media/channel1</code></td>
       </tr>
       <tr>
         <td style="text-align: left">Alternative ID</td>
         <td style="text-align: left">(optional) Alternative identifier that may be used to support correlation with other identification schemes.<br>Example: use of DOI for Digital Object Identifier.</td>
       </tr>
       <tr>
         <td style="text-align: left">Description</td>
         <td style="text-align: left">Short description of the Media.<br>As this field is used at different levels of the UI (in particular the scheduling view with media points), we recommend configuring an explicit channel name.</td>
       </tr>
       <tr>
         <td style="text-align: left">Metadata</td>
         <td style="text-align: left">Additional metadata may be added, in text or XML format.</td>
       </tr>
       <tr>
         <td style="text-align: left">Source</td>
         <td style="text-align: left">Default source identifier.<br>Providing a default source is helpful when a <strong>Media</strong> element is used to reference multiple content sources (like it is the case when managing alternate broadcast content switching).</td>
       </tr>
       <tr>
         <td style="text-align: left">Effective/Expires</td>
         <td style="text-align: left">Date and time when a contained media point first becomes eligible or is no longer eligible respectively.<br>Most of the time, these two fields are left blank. They only need to be configured for specific purposes.</td>
       </tr>
     </tbody>
   </table>

4. Select **Ok**. The Media is added to the list of media resources:

## Configure an Audience

In SCTE-224 language, an **Audience** element represents a set of viewers sharing common attributes or characteristics such as location, device capabilities or type etc.

Using Prisma, you can define a group of viewers from a given geographical area using FIPS, zip code for instance.

Few examples of audience configuration use cases:

- **Sim-subs in Canada**: In Canada, viewers are grouped by means of FIPS. Depending on the broadcast programming, those viewers may switch from the Canadian to American content based on their geographical area.
- **Mobile blackout**: an operator may have negotiated the right to distribute to main screen, but the same content or program may not be allowed for mobile devices.
- **Sports blackout**: a sports event can have a blackout restriction for the area around the stadium.

<blockquote data-callout="note"><strong>Note</strong><p>When the ingested schedule does not target a particular audience, a default audience element will be created, representing everybody (<strong>Audience: All</strong> for instance).</p></blockquote>

To configure the Audience element, follow these steps:

1. Select the **Audiences** tab.

2. Select **Add** to add an audience resource.

3. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">Audience ID</td>
         <td style="text-align: left">Depending on the audience, different syntax are recommended:<br>- <strong>Location type of audience</strong>: for audiences describing a geographical area by means of zipcode, FIPS etc. we recommend the following ID URI syntax: <code>/{content_Provider_name}/audience/location/{location_name}</code>. <br>-<strong>Device type of audience</strong>: for audiences describing device (such as mobile for instance), we recommend the following ID URI syntax: <code>/{content_Provider_name}/audience/device/{device_name}</code><br>- <strong>Nested audiences</strong>: for nested (combined) audiences combining a location and device-based audience, we recommend the following ID URI syntax: <code>/{content_Provider_name}/audience/{location_name}.{device_name}</code></td>
       </tr>
       <tr>
         <td style="text-align: left">Alternative ID</td>
         <td style="text-align: left">Alternative identifier that may be used to support correlation with other identification schemes.<br>Example: use of DOI for Digital Object Identifier.</td>
       </tr>
       <tr>
         <td style="text-align: left">Description</td>
         <td style="text-align: left">Short description of the audience.</td>
       </tr>
       <tr>
         <td style="text-align: left">Metadata</td>
         <td style="text-align: left">Additional metadata may be added, in text or XML format.</td>
       </tr>
       <tr>
         <td style="text-align: left">Match</td>
         <td style="text-align: left">Possible values:<br>- <strong>ALL</strong>: all elements of the audience or nested audiences shall evaluate to true.<br>- <strong>ANY</strong>: At least one element of the audience or nested audiences shall evaluate to true.<br>- <strong>NONE</strong>: None of the audience or nested audience’s element evaluate to true.</td>
       </tr>
       <tr>
         <td style="text-align: left">Embedded audiences</td>
         <td style="text-align: left">An audience can be created from individual audience (nested audience). You can create for instance a geo-based audience, another one for mobile, and combined those two audiences to create a mobile audience on a given geographical area.</td>
       </tr>
       <tr>
         <td style="text-align: left">Condition</td>
         <td style="text-align: left">Configure audience elements (manually or from a pre-defined list) and value using SCTE-224 audience xsd.</td>
       </tr>
     </tbody>
   </table>

4. Select **Ok**. The audience is added to the list of audiences.

## Configure a Viewing Policy

In SCTE-224 standard, a viewing policy defines one or more action against a given audience. An audience can be an individual element, or combined audience.

A viewing policy element may describe for instance:

- A blackout
- An alternate content switching (program substitution, regional switch-over)
- An opportunity for linear ad replacement, Dynamic ad insertion

To configure a Viewing policy, follow these steps:

1. Select the **Viewing policies** tab.

2. Select **Add** to add a viewing policy element

3. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">ID</td>
         <td style="text-align: left">Viewing policy ID expressed as a URI. We recommend the following syntax: <code>/{content_Provider_name}/viewingpolicy/{audience_name}/{viewingpolicy_name}</code></td>
       </tr>
       <tr>
         <td style="text-align: left">Alternative ID</td>
         <td style="text-align: left">(optional) Alternative identifier that may be used to support correlation with other identification schemes. <em>Example</em>: use of DOI for Digital Object Identifier.</td>
       </tr>
       <tr>
         <td style="text-align: left">Description</td>
         <td style="text-align: left">Short description of the viewing policy.</td>
       </tr>
       <tr>
         <td style="text-align: left">Metadata</td>
         <td style="text-align: left">(optional) Additional metadata may be added, in text or XML format.</td>
       </tr>
       <tr>
         <td style="text-align: left">Audience</td>
         <td style="text-align: left">Select the audience element you want to configure one or more actions against (drop down list allowing a single select).</td>
       </tr>
       <tr>
         <td style="text-align: left">Actions</td>
         <td style="text-align: left">Select an action from the given list (under Name) and provide a value. Custom action can also be configured. <br>The value for blackout comes from the SCTE-224 Action XSD using the following value for content: "urn:scte:224:action:blackout". For alternate content switching, a source ID is generally provided.</td>
       </tr>
     </tbody>
   </table>

4. Select **Ok**. The viewing policy is added to the list of viewing policies.

## Configure a Policy

A Policy element is a collection of one or more Viewing Policy elements. It defines a set of one or more actions against a defined set of audiences.

To configure a Policy element, follow these steps:

1. Select the **Policies** tab.

2. Select **Add** to add a policy element.

3. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">ID</td>
         <td style="text-align: left">Policy ID expressed as a URL. We recommend the following syntax: <code>/{content_Provider_name}/policy/{audience}/{policy_name}</code></td>
       </tr>
       <tr>
         <td style="text-align: left">Alternative ID</td>
         <td style="text-align: left">(optional) Alternative identifier that may be used to support correlation with other identification schemes. Example: use of DOI for Digital Object Identifier.</td>
       </tr>
       <tr>
         <td style="text-align: left">Description</td>
         <td style="text-align: left">Short description of the policy.</td>
       </tr>
       <tr>
         <td style="text-align: left">Metadata</td>
         <td style="text-align: left">(optional) Additional metadata may be added, in text or XML format.</td>
       </tr>
       <tr>
         <td style="text-align: left">Viewing policies</td>
         <td style="text-align: left">Select one or more viewing policies. Upon selection, a tree describing how the policy is structured will appear,.</td>
       </tr>
     </tbody>
   </table>

4. Select **Ok**. The policy is added to the list of policies.

## Configure a MediaPoint

Scheduled airing program, program blackout etc. will usually be described by two MediaPoint elements (one for the start, and one for the end) or by one MediaPoint element with a given policy duration. Policy with **Apply** and **Remove** elements will exist when there is a change in the live channel (Media).

Application of a policy can be time-based (based on @matchTime or @effective/@expires attribute) and/or based on in-band signaling (@matchSignal) using SCTE-35. To summarize, a media point in SCTE-224 describes what happens at a given time.

For instance: a blackout from 10am to 12am at a given day on a given channel will be represented by either:

- One MediaPoint element with a policy describing a blackout action with a duration
- Two MediaPoint elements with a policy (with apply and remove elements)

MediaPoint elements can be created:

- automatically based on ingested schedule (see following sections)
- or manually when the above (SCTE-224 configuration) has been done

To manually create MediaPoint elements, proceed as follows:

1. Open the SCTE-224 timeline with `Clock` icon from the Viewing Policy Manager service configuration or from the list of configured services.

2. By default, no Media is selected. Select the **Media** field, and select the Media element/live channel you want to create a MediaPoint to.

3. On the left-hand side, select the **Add MediaPoint** button.

4. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">ID</td>
         <td style="text-align: left">MediaPoint ID expressed as a URI. We recommend the following syntax: <code>/{content_Provider_name}/media/{Media_name}/program/{secheduled-airing-id}/[start/stop]/{content_Provider_name}/media/{Media_name}/resident</code></td>
       </tr>
       <tr>
         <td style="text-align: left">Alternative ID</td>
         <td style="text-align: left">(optional) Alternative identifier that may be used to support correlation with other identification schemes. Example: use of DOI for Digital Object Identifier.</td>
       </tr>
       <tr>
         <td style="text-align: left">Description</td>
         <td style="text-align: left">Short description of the MediaPoint.</td>
       </tr>
       <tr>
         <td style="text-align: left">Metadata</td>
         <td style="text-align: left">(optional) Additional metadata may be added, in text or XML format.</td>
       </tr>
       <tr>
         <td style="text-align: left">Effective</td>
         <td style="text-align: left">Date and time when the media point can start being evaluated. It usually corresponds to match time minus a certain duration.</td>
       </tr>
       <tr>
         <td style="text-align: left">Expires</td>
         <td style="text-align: left">Date and time when the media point can stop being considered. It usually corresponds to match time to which a certain duration is added (like few minutes for instance).</td>
       </tr>
       <tr>
         <td style="text-align: left">Expected duration</td>
         <td style="text-align: left">Expected duration of the MediaPoint if known.</td>
       </tr>
     </tbody>
   </table>

5. Three tabs must be configured, providing details on the scheduling conditions (time-based and or in-band), as well as the policy application or removal.
   1. Select the **Match time** tab.

      <table>
        <thead>
          <tr>
            <th style="text-align: left">Parameter</th>
            <th style="text-align: left">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="text-align: left">Match time</td>
            <td style="text-align: left">Date and time the media point will be evaluated (can be for instance the time at which a blackout shall start). <br>This parameter corresponds to @matchTime attribute from the media point in the SCTE-224 XML structure.</td>
          </tr>
          <tr>
            <td style="text-align: left">Match offset</td>
            <td style="text-align: left">This field is only relevant for VOD or time-shifted content and shall be left blank.</td>
          </tr>
        </tbody>
      </table>

   2. Select the **Match signal** tab. Its settings correspond to the `@matchSignal` attribute of the media point.

   3. Configure the following settings.

      <table>
        <thead>
          <tr>
            <th style="text-align: left">Parameter</th>
            <th style="text-align: left">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="text-align: left">Match</td>
            <td style="text-align: left">Select one of the following:<br>- <strong>ALL</strong>: all asserts evaluate to true. <br>- <strong>NONE</strong>: none of the asset evaluate to true. <br>- <strong>ANY</strong>: at least one asset evaluates to true</td>
          </tr>
          <tr>
            <td style="text-align: left">Source</td>
            <td style="text-align: left">Identifies which source the SCTE-35 shall be matched against. This field can be left blank as we recommend using Media/@source instead.</td>
          </tr>
          <tr>
            <td style="text-align: left">Signal tolerance</td>
            <td style="text-align: left">A duration that is added to match time attribute. In the event the match signal is not found the media point will be activate at match time + signal duration.</td>
          </tr>
          <tr>
            <td style="text-align: left">Reusable</td>
            <td style="text-align: left">Allows re-using above configured asserts.</td>
          </tr>
          <tr>
            <td style="text-align: left">Asserts</td>
            <td style="text-align: left">Specifies where the SCTE-35 XML description is placed, using XPath 2.0 assertion. <br><em>Example</em>: <code>/SpliceInfoSection/SegmentationDescriptor[@segmentationTypeId = 16]/ SegmentationUpid[@segmentationUpidType = 1 and contains(text(),'ASSET1')]</code> <br><strong>Note:</strong> One or more asserts can be configured using the <strong>Add</strong> button.</td>
          </tr>
        </tbody>
      </table>

   4. Select the **Policies** tab: at this level, you define which policy shall be applied (Apply section) or removed (Remove section).

<blockquote data-callout="note"><strong>Note</strong><p><strong>Policies</strong> tab corresponds to the <em><strong>Apply</strong></em> or <em><strong>Remove</strong></em> section of the SCTE-224 media point.</p></blockquote>

6. Select **Add**.

7. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">Policy</td>
         <td style="text-align: left">Select the Policy you want to apply or remove.</td>
       </tr>
       <tr>
         <td style="text-align: left">Duration</td>
         <td style="text-align: left">If the event consists of a mediapoint start with a duration, configure the duration. If the event is made of two mediapoints, this field must be left empty.</td>
       </tr>
       <tr>
         <td style="text-align: left">Priority</td>
         <td style="text-align: left">Priority of the policy in case of policy overlap. Leave blank if a single policy is configured.</td>
       </tr>
     </tbody>
   </table>

8. Select **Ok**.

Application of SCTE 224 events via mediapoint can be coupled with in-band signaling (SCTE-35) using assets (XPATH 2.0 assertions). For instance, you can apply/remove a policy based on the reception of an SCTE-35 trigger. When this trigger is detected, and within the desired time boundaries, the policy will be applied or removed.

<blockquote data-callout="caution"><strong>Caution</strong><p>If the <strong>match signal</strong> attribute is configured, the policy will be applied/removed even if the SCTE-35 trigger has not been detected.</p></blockquote>
