The bypass rule configuration feature allows you to configure bypass and push rules. This topic describes how to configure bypass forwarding rules.

Procedure

  1. Log on to the Real-Time Communication RTC console.
  2. In the left-side navigation pane, choose Configuration > Bypass Rule.
  3. Select the ID of the application to be configured.
  4. Create a bypass push rule.
    1. Optional:Turn on the Live Stream Transfer switch.
      Note
      • By default, the bypass forwarding service is disabled. You must enable the service in the console before you can use the bypass function properly. Otherwise, the bypass function is unavailable.
      • You can create, edit, and disable bypass rules only when the bypass forwarding service is enabled. If the bypass forwarding service is disabled, the enabled bypass rules are also invalid.
      • If you disable the bypass forwarding service through the console, it will not affect the ongoing bypass task, and the bypass function will not be available after the ongoing bypass task is stopped.
    2. Click Create Rule.
    3. Set parameters for adding a rule.
      001
      Parameter Description
      The ID of the application. The ID of the application.
      Rule The name of the rule. It can contain 1 to 256 characters, letters, digits, underscores (_), and hyphens (-).
      Streaming domain You must use the streaming domain name in the ApsaraVideo Live service to configure the bypass ingest rule. For more information, see Add an ingest domain and a streaming domain.
      callback URL The callback URL.
      Match methods The channel matching method. Valid values:
      • All channels: The currently configured bypass forwarding rule applies to all channels under the current AppID.
      • Exact match: The currently configured bypass push rule applies to channels that can be exactly matched.
      • Match by prefix: The currently configured bypass push rule applies to channels matched by prefix.
      Channel If you set Matching Method to Exact Match, you must enter and select a channel ID. You can enter multiple channel IDs.
      Channel Prefix If you set Matching Method to Match by Prefix, you must enter and select a channel ID prefix. You can enter multiple channel ID prefixes.
    4. Click Create to create a bypass forwarding rule.
      Note The bypass forwarding rule takes effect immediately after it is created. The audio and video streams under the selected application ID are automatically pushed to the specified domain name. If your business scenario does not require automatic bypass to push, do not create one.
  5. View bypass forwarding rules.

    In the rule list, you can click Edit, Enable, or Delete in the Actions column to manage the specified bypass forwarding rule.