Created
May 13, 2018 00:46
-
-
Save AFathi/56da28634f8c1f348dc650d3fd79774d to your computer and use it in GitHub Desktop.
A simple Swift enum that contains Twitch RTMP addresses in different cities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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