File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ rtmpStream.videoSettings = [
47
47
" width" : 640 , // video output width
48
48
" height" : 360 , // video output height
49
49
" bitrate" : 160 * 1024 , // video output bitrate
50
+ // "dataRateLimits": [160 * 1024 / 8, 1], optional kVTCompressionPropertyKey_DataRateLimits property
50
51
" profileLevel" : kVTProfileLevel_H264_Baseline_3_1, // H264 Profile require "import VideoToolbox"
51
52
" maxKeyFrameIntervalDuration" : 2 , // key frame / sec
52
53
]
@@ -57,6 +58,14 @@ var rtmpConnection:RTMPConnection = RTMPConnection()
57
58
rtmpConnection.connect (" rtmp://username:password@localhost/appName/instanceName" )
58
59
```
59
60
61
+ ### Screen Capture
62
+ ``` swift
63
+ // iOS
64
+ rtmpStream.attachScreen (ScreenCaptureSession ())
65
+ // macOS
66
+ rtmpStream.attachScreen (AVCaptureScreenInput (displayID : CGMainDisplayID ()))
67
+ ```
68
+
60
69
## HTTP Usage
61
70
HTTP Live Streaming (HLS). Your iPhone/Mac become a IP Camera. Basic snipet. You can see http://ip.address:8080/hello/playlist.m3u8
62
71
``` swift
You can’t perform that action at this time.
0 commit comments