Welcome to the AppRTC Documentation
Thank you for visiting the documentation page for AppRTC. AppRTC is an open-source framework for developing real-time communication applications, specifically targeting iOS and Mac platforms. This documentation will provide you with detailed information on how to get started with AppRTC, its features, and usage guidelines.
Table of Contents
Installation
To install AppRTC, follow these steps:
- Step 1: Open your Xcode project
- Step 2: In the terminal, navigate to your project’s root directory
- Step 3: Run the following command:
pod install
to install the required dependencies
- Step 4: Open the generated
.xcworkspace
file
- Step 5: Start developing with AppRTC!
- Step 1: Open your Xcode project
- Step 2: In the terminal, navigate to your project’s root directory
- Step 3: Run the following command:
pod install
to install the required dependencies - Step 4: Open the generated
.xcworkspace
file - Step 5: Start developing with AppRTC!
Getting Started
To get started with AppRTC, follow these steps:
- Step 1: Import the AppRTC framework into your project
- Step 2: Initialize an instance of the AppRTCClient class
- Step 3: Implement the necessary delegate methods and conform to the AppRTCClientDelegate protocol
- Step 4: Connect to the desired room using the connectToRoom method
- Step 5: Implement the necessary methods for sending and receiving data
- Step 1: Import the AppRTC framework into your project
- Step 2: Initialize an instance of the AppRTCClient class
- Step 3: Implement the necessary delegate methods and conform to the AppRTCClientDelegate protocol
- Step 4: Connect to the desired room using the connectToRoom method
- Step 5: Implement the necessary methods for sending and receiving data
Features
AppRTC provides the following features:
- Real-time audio and video communication
- Screen sharing capabilities
- Support for multiple users in a single room
- Secure and encrypted data transmission
- Real-time audio and video communication
- Screen sharing capabilities
- Support for multiple users in a single room
- Secure and encrypted data transmission
Usage
Connecting to Rooms
To connect to a room, use the following method:
func connectToRoom(_ roomURL: URL, options: AppRTCAppClient.RoomConnectionOptions)
Connecting to Rooms
To connect to a room, use the following method:
func connectToRoom(_ roomURL: URL, options: AppRTCAppClient.RoomConnectionOptions)
func connectToRoom(_ roomURL: URL, options: AppRTCAppClient.RoomConnectionOptions)
This method establishes a connection to the specified room URL and sets various options for the connection.
Sending and Receiving Data
To send and receive data over the connection, use the following methods:
func sendData(_ data: Data, forStreamId streamId: String)
func didReceiveData(_ data: Data, fromStreamId streamId: String)
func sendData(_ data: Data, forStreamId streamId: String)
func didReceiveData(_ data: Data, fromStreamId streamId: String)
These methods allow you to send and receive data packets associated with a particular stream ID.
Media Streams
To handle media streams, AppRTC provides the following methods:
func localStream() -> RTCMediaStream?
func remoteStream() -> RTCMediaStream?
func localStream() -> RTCMediaStream?
func remoteStream() -> RTCMediaStream?
These methods provide access to the local and remote media streams, respectively.