Skip to content
v2.273.0

BridgeProtocol Class ​

Options for bridge network source and output protocols.

Example ​

ts
declare const stack: Stack;

const productionNetwork = GatewayNetwork.define({
  cidrBlock: '192.168.1.0/24',
  name: 'production-network',
});

const gateway = new Gateway(stack, 'MyGateway', {
  gatewayName: 'my-gateway',
  egressCidrBlocks: ['10.0.0.0/16'],
  networks: [productionNetwork],
});

const ingressBridge = new Bridge(stack, 'MyIngressBridge', {
  bridgeName: 'my-ingress-bridge',
  config: BridgeConfiguration.ingress({
    maxBitrate: Bitrate.mbps(10),
    maxOutputs: 2,
    networkSources: [{
      name: 'on-prem-source',
      source: {
        protocol: BridgeProtocol.RTP,
        network: productionNetwork,
        multicastIp: '239.1.1.1',
        port: 5000,
      },
    }],
  }),
  gateway: gateway,
});

Properties ​

RTP_FECBridgeProtocolrtp_fecBridgeProtocolRTP_FECBridgeProtocolRTP_FECBridgeProtocolRTP_FECBridgeProtocolrequiredstatic#
Option for RTP-FEC.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The bridge protocol string value.

Methods ​

of(value: string): BridgeProtocol // chainable@staticmethod def of(value: str) -> BridgeProtocolpublic static BridgeProtocol of(String value)public static BridgeProtocol Of(string value)func Of(Value *string) BridgeProtocolstatic#
Use a custom bridge protocol value.
1 parameter

Parameters

  • valuevaluevaluevalueValue — The bridge protocol string value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Returns the string value.