Skip to content

Commit e679b54

Browse files
authored
Update README.md
1 parent eb5f0e7 commit e679b54

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ rtmpStream.videoSettings = [
4747
"width": 640, // video output width
4848
"height": 360, // video output height
4949
"bitrate": 160 * 1024, // video output bitrate
50+
// "dataRateLimits": [160 * 1024 / 8, 1], optional kVTCompressionPropertyKey_DataRateLimits property
5051
"profileLevel": kVTProfileLevel_H264_Baseline_3_1, // H264 Profile require "import VideoToolbox"
5152
"maxKeyFrameIntervalDuration": 2, // key frame / sec
5253
]
@@ -57,6 +58,14 @@ var rtmpConnection:RTMPConnection = RTMPConnection()
5758
rtmpConnection.connect("rtmp://username:password@localhost/appName/instanceName")
5859
```
5960

61+
### Screen Capture
62+
```swift
63+
// iOS
64+
rtmpStream.attachScreen(ScreenCaptureSession())
65+
// macOS
66+
rtmpStream.attachScreen(AVCaptureScreenInput(displayID: CGMainDisplayID()))
67+
```
68+
6069
## HTTP Usage
6170
HTTP Live Streaming (HLS). Your iPhone/Mac become a IP Camera. Basic snipet. You can see http://ip.address:8080/hello/playlist.m3u8
6271
```swift

0 commit comments

Comments
 (0)