A modified version of amazon-kinesis-video-streams-webrtc-sdk-ios that expanded support for usage scenarios that only receive video and audio streams. AWS authentication is switched from Cognito to AWS Static Credentials.
亚马逊KVS WebRTC视频流的修改版本,拓展支持了仅接收视频流和音频流的使用场景。AWS身份验证已从Cognito切换到AWS静态凭据。
Tip 1: Before running the app, replace the AWSAccessKey and AWSSecretKey, and enter your channel name and region.
在运行应用程序之前,请替换AWSAccessKey和AWSSecretKey,并输入您的频道名称和地区。
Tip 2: When the popup requests microphone permission, please select 'Don't Allow' directly, it won't start recording and won't affect usage. This microphone popup might be a bug in the official WebRTC implementation because it will popup even if set isAudioOn to false.
当弹出窗口请求麦克风权限时,请直接选择“Don't Allow”,它不会开启录音,不影响使用。这个麦克风弹出窗口可能是官方WebRTC实现中的一个错误,因为即使将isAudioOn设置为false,它也会弹出。
ScreenRecording_04-16-2025.15-14-45_1.mov
- Xcode 10 and later
- iOS 11 and later
-
The AWSKinesisVideo SDK for iOS is available through CocoaPods. If you have not installed CocoaPods, install CocoaPods: (Requires Ruby installed)
sudo gem install cocoapods pod setup
-
To install the AWSKinesisVideo SDK for iOS run the following command in the directory containing this sample要安装AWSKinesisVideo SDK for iOS,请在包含此示例的目录中运行以下命令:
pod install
-
Open
AWSKVSWebRTCReceiver.xcworkspace
(File location: aws-kvs-webrtc-ios-receiver/AWSKVSWebRTCReceiver/AWSKVSWebRTCReceiver.xcworkspace). -
Add your AK/SK info and enter your channel name and region into ChannelConfigurationViewController.swift
添加您的AK/SK信息,并在中输入您的频道名称和地区:
let AWSAccessKey: String = "REPLACE_ME"
let AWSSecretKey: String = "REPLACE_ME"
let DefaultChannel: String = "Test_Channel"
let DefaultRegionName: String = "cn-north-1"
- This sample application has been tested in iPhone 11 and iPhone XS MAX.
此示例应用程序已在iPhone 11和iPhone XS MAX上进行了测试.
This library is licensed under the Apache 2.0 License.