Skip to content

Instantly share code, notes, and snippets.

@duncte123
Forked from AFathi/TwitchIngest.swift
Created December 13, 2022 06:56
Show Gist options
  • Save duncte123/7de45a3e0fb7c7d8f9e52271012e4153 to your computer and use it in GitHub Desktop.
Save duncte123/7de45a3e0fb7c7d8f9e52271012e4153 to your computer and use it in GitHub Desktop.
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