Set up content, sources and destinations for SRT distribution

Content

Create the content. Here, we are representing a channel called 'Sport 1':

PUT https://api.mk.io/api/projects/myproject/v1/flow/content/sports1

{
    "metadata": {
        "displayName": "Sports 1"
    }
}

Source

Add a source to the content that represents an external SRT caller. When configured, this results in the creation of an SRT listener within the MK.IO system to receive the incoming SRT stream for distribution via the public cloud.

PUT https://api.mk.io/api/projects/myproject/v1/flow/sources/sports1-primary

{
    "metadata": {
        "displayName": "Sports 1 - Primary"
    },
    "spec": {
        "contentName": "sports1",
        "networkName": "internet",
        "transport": {
            "type": "SRTListener",
            "port": 5000,
            "ipResource": {
                "type": "External"
            },
            "encryptionStandard": "AES128",
            "passPhrase": "chooseasecret"
        }
    }
}

Destination

Add a destination that represents an external SRT caller. When configured, this results in the creation of an SRT Listener within the MK.IO system that delivers SRT content to the external endpoint via the public cloud.

PUT https://api.mk.io>/api/projects/myproject/v1/flow/destinations/sports1-affiliate

{
    "metadata": {
        "displayName": "Sports 1 - Affiliate"
    },
    "spec": {
        "networkName": "internet",
        "transport": {
            "type": "SRTListener",
            "port": 5000,
            "ipResource": {
                "type": "External"
            },
            "encryptionStandard": "AES128",
            "passPhrase": "chooseasecret"
        }
    }
}