This document introduces how to quickly run through E-Commerce sample project.
Demo effect:
- Xcode 14 or higher
- A mobile device that runs iPhone 13.0 or higher
- Follow The Account Document to get the App ID and App Certificate (if token is enabled).
- Follow Signaling Beginner's guide to enable signaling in Agora Console.You should enable the following:
- Using storage
- User attribute callback
- Channel attribute callback
- Distributed lock
-
Open the
iOS
project and fill in properties got above to the root KeyCenter.swift file.# RTM RTC SDK key Config static let AppId: String = <#YOUR APPID#> static let Certificate: String? = <#YOUR CERTIFICATE#>
-
Now you can run the project with Xcode to experience the application.
Path(iOS/AgoraEntScenarios/Scenes/Commerce) | Description |
---|---|
Common/API/VideoLoaderAPI | Agora Video Loader Scenario API. |
Scenes/Commerce/Service/ | E-Commerce service protocol and implement. |
Scenes/Commerce/Controller/CommerceRoomListVC.swift | E-Commerce room list view. |
Scenes/Commerce/Controller/CommerceLivePagesViewController.swift | E-Commerce room detail scroll page view. |
Scenes/Commerce/Controller/CommerceLiveViewController.swift | E-Commerce room detail view. |
Scenes/Commerce/Models/CommerceAgoraKitManager.swift | RTC Engine initializing. |
Scenes/Commerce/View/ | E-Commerce streaming UI widgets. |
If you have any problems or suggestions regarding the sample projects, feel free to file an issue.
- Check our FAQ to see if your issue has been recorded.
- Dive into Agora SDK Samples to see more tutorials.
- Take a look at Agora Use Case for more complicated real use cases.
- Repositories managed by developer communities can be found at Agora Community.
- If you encounter problems during integration, feel free to ask questions on Stack Overflow.
The sample projects are under the MIT license.