Switcher

public class Switcher

An endpoint to interact with BMD ATEM controllers like “Atem Software Control” or any of the hardware control panels.

  • The underlying NIO Datagram Channel

    Declaration

    Swift

    public let channel: EventLoopFuture<Channel>
  • Start a switcher endpoint that controllers can interact with.

    Behaviour of this switcher can be defined using the setup parameter. This is a function that will be called with a connections handle before the switcher is started. Use this connection parameter to attach handlers for the messages you want to act upon. See SwitcherConnections for more information.

    Declaration

    Swift

    public init(eventLoopGroup: EventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount), setup: (SwitcherConnections) -> Void)

    Parameters

    eventLoopGroup

    The Swift NIO event loop group this switcher will run in.

    setup

    A function to setup the behaviour of the switcher.