Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple Swift enum that contains Twitch RTMP addresses in different cities
//
// TwitchIngest.swift
//
//
// Created by Ahmed Bekhit on 5/12/18.
// Copyright © 2018 Ahmed Bekhit. All rights reserved.
//
// MARK:- Source: https://stream.twitch.tv/ingests/
public enum TwitchRTMPCity: String {
case jfk = "rtmp://live-jfk.twitch.tv/app/" //"New York City, New York"
case mia = "rtmp://live-mia.twitch.tv/app/" //"Miami, Florida"
case ord = "rtmp://live-ord.twitch.tv/app/" //"Chicago, Illinios"
case atl = "rtmp://live-atl.twitch.tv/app/" //"Atlanta, Georgia"
case dfw = "rtmp://live-dfw.twitch.tv/app/" //"Dallas, Texas"
case sjc = "rtmp://live-sjc.twitch.tv/app/" //"San Jose, California"
case sea = "rtmp://live-sea.twitch.tv/app/" //"Seattle, Washington"
case ymq = "rtmp://live-ymq.twitch.tv/app/" //"Qubec, Canada"
case yto = "rtmp://live-yto.twitch.tv/app/" //"Toronto, Canada"
case lhr = "rtmp://live-lhr.twitch.tv/app/" //"London, United Kingdom"
case ams = "rtmp://live-ams.twitch.tv/app/" //"Amsterdam, Netherlands"
case rio = "rtmp://live-rio.twitch.tv/app/" //"Rio de Janiero, Brazil"
case syd = "rtmp://live-syd.twitch.tv/app/" //"Sydney, Australia"
case ber = "rtmp://live-ber.twitch.tv/app/" //"Berlin, Germany"
case cdg = "rtmp://live-cdg.twitch.tv/app/" //"Paris, France"
case hkg = "rtmp://live-hkg.twitch.tv/app/" //"Hong Kong, Hong Kong"
case tpe = "rtmp://live-tpe.twitch.tv/app/" //"Taipei, Taiwan"
case sel = "rtmp://live-sel.twitch.tv/app/" //"Seoul, South Korea"
case tyo = "rtmp://live-tyo.twitch.tv/app/" //"Tokyo, Japan"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.