在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:twilio/video-quickstart-ios开源软件地址:https://github.com/twilio/video-quickstart-ios开源编程语言:Swift 63.9%开源软件介绍:NEW: Please check out the newly open-sourced video collaboration app built with iOS Video SDK. Twilio Video Quickstart for iOS
Get started with Video on iOS:
SetupThis repository contains example code written in both Objective-C and Swift. If you haven't used Twilio before, welcome! You'll need to Sign up for a Twilio account first. It's free! These Quickstarts expect that you have "Client-side Room Creation" enabled in your Twilio account. You can check this setting on the Default Room Settings page in the Twilio Console. QuickstartRunning the Swift QuickstartTo get started with the Swift Quickstart application follow these steps:
Note: If you enter the Room Name, then you can restrict this user's access to the specified Room only. Ideally, you want to implement and deploy an Access Token server to generate tokens. You can read more about setting up your own Access Token Server in this section. Read this tutorial to learn more about Access Tokens.
Running the Objective-C QuickstartTo get started with the Objective-C Quickstart application follow these steps:
Note: If you enter the Room Name, then you can restrict this user's access to the specified Room only. Ideally, you want to implement and deploy an Access Token server to generate tokens. You can read more about setting up your own Access Token Server in this section. Read this tutorial to learn more about Access Tokens.
Using a SimulatorYou can use the iOS Simulator that comes with Xcode to do your testing, but local video will not be shared since the Simulator cannot access a camera. Note: If you have an iOS device, you can now run apps from Xcode on your device without a paid developer account. ExamplesYou will also find additional examples that provide more advanced use cases of the Video SDK. The currently included examples are as follows:
Setup an Access Token ServerUsing Twilio's Video client within your applications requires an access token. Access Tokens are short-lived credentials that are signed with a Twilio API Key Secret and contain grants which govern the actions the client holding the token is permitted to perform. Configuring the Access Token ServerIf you want to be a little closer to a real environment, you can download one of the video Quickstart server applications - for instance, Video Quickstart: PHP and either run it locally, or install it on a server. You can review a detailed tutorial. You'll need to gather a couple of configuration options from the Twilio developer console before running it, so read the directions on the Quickstart. You'll copy the config.example.php file to a config.php file, and then add in these credentials:
Use whatever clever username you would like for the identity. If you enter the Room Name, then you can restrict this users access to the specified Room only. Read this tutorial for more information on Access Tokens. A Note on API KeysWhen you generate an API key pair at the URLs above, your API Secret will only be shown once - make sure to save this in a secure location. Running the Video Quickstart with ngrokBecause we suggest that you run your video chat application on actual iOS device so that you can use the camera on the device, you'll need to provide an externally accessible URL for the app (the iOS simulator will be fine with localhost). Ngrok creates a publicly accessible URL that you can use to send HTTP/HTTPS traffic to a server running on your localhost. Use HTTPS to make web connections that retrieve a Twilio access token. When you get a URL from ngrok, go ahead and update For this Quickstart, the Application transport security settings are set to allow arbitrary HTTP loads for testing your app. For production applications, you'll definitely want to retrieve access tokens over HTTPS/SSL. More DocumentationYou can find more documentation on getting started as well as our latest Docs below: Issues and SupportPlease file any issues you find here on Github. Please ensure that you are not sharing any Personally Identifiable Information(PII) or sensitive account information (API keys, credentials, etc.) when reporting an issue. For general inquiries related to the Video SDK you can file a support ticket. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论