mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
28 lines
689 B
Markdown
28 lines
689 B
Markdown
# ``RTCHaishinKit``
|
|
This module supports WHIP/WHEP protocols.
|
|
|
|
## 🔍 Overview
|
|
RTCHaishinKit is WHIP/WHEP protocols stack in Swift. It internally uses a library that is built from [libdatachannel](https://github.com/paullouisageneau/libdatachannel) and converted into an xcframework.
|
|
|
|
## 🎨 Features
|
|
- Publish(WHIP)
|
|
- H264 and OPUS support.
|
|
- Playback(WHEP)
|
|
- H264 and OPUS support.
|
|
|
|
## 📓 Usage
|
|
### Logging
|
|
- Defining a Swift wrapper method for `rtcInitLogger`.
|
|
```swift
|
|
await RTCLogger.shared.setLevel(.debug)
|
|
```
|
|
|
|
### Session
|
|
Currently designed to work with the Session API.
|
|
```swift
|
|
import RTCHaishinKit
|
|
|
|
await SessionBuilderFactory.shared.register(HTTPSessionFactory())
|
|
```
|
|
|