Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Swift/KVSiOSApp/ChannelConfigurationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class ChannelConfigurationViewController: UIViewController, UITextFieldDelegate
print("Generated clientID is \(self.localSenderId)")
}
// Kinesis Video Client Configuration
let configuration = AWSServiceConfiguration(region: awsRegionType, credentialsProvider: getCredentialsProvider())
let configuration = AWSServiceConfiguration(region: awsRegionType,
endpoint: kvsControlPlaneOverride.map { AWSEndpoint(urlString: $0) },
credentialsProvider: getCredentialsProvider())
AWSKinesisVideo.register(with: configuration!, forKey: awsKinesisVideoKey)

// Attempt to retrieve signalling channel. If it does not exist create the channel
Expand Down
1 change: 1 addition & 0 deletions Swift/KVSiOSApp/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ let equalsEncoding = "%3D"
let awsAccessKey: String? = ProcessInfo.processInfo.environment["AWS_ACCESS_KEY_ID"]
let awsSecretKey: String? = ProcessInfo.processInfo.environment["AWS_SECRET_ACCESS_KEY"]
let awsSessionToken: String? = ProcessInfo.processInfo.environment["AWS_SESSION_TOKEN"]
let kvsControlPlaneOverride: String? = ProcessInfo.processInfo.environment["CONTROL_PLANE_URI"]
Loading