Sample Integrations
To showcase the core functionality of the StreamLayer SDK, we've developed a sample app featuring a basic video player and a simple interface for switching video channels. This sample serves as a starting point and demonstrates a minimal implementation that you can expand upon when building your own customized application with our SDK. You can review the source code and run the sample on your device by following the instructions below:
Sample Project: Sample Example Application
Bootstrap
Before getting started, review the provided Makefile for available commands to bootstrap the project.
Prerequisites
Ensure your development environment meets the following prerequisites:
-
Xcode: Make sure you have Xcode 15.3 installed. If needed, set the correct Xcode path by running:
sudo xcode-select -s /Applications/Xcode.app
Integration Steps
Follow these steps to set up and run the sample app:
-
Install Dependencies: Launch the
makecommand from your terminal to install all required dependencies for the project. -
Open the Project: Once the dependencies are installed, the process will automatically open the project file (
SwiftDemo.xcodeproj) in Xcode. -
Provide SDK key
StreamLayer.initSDK(with: "YOUR_API_KEY", delegate: self, loggerDelegate: self)
Important: To connect to the demo server, ensure you use the demo API key provided during your onboarding process.
This sample integration provides a foundational implementation to help you understand how to work with the StreamLayer SDK. Feel free to modify and expand the sample as needed to suit your application's requirements.
Updated 4 months ago
