Skip to content

Instantly share code, notes, and snippets.

@sfaxon
Created August 5, 2018 21:34
Show Gist options
  • Save sfaxon/980cd236ae8815a42d75e7dfb139f196 to your computer and use it in GitHub Desktop.
Save sfaxon/980cd236ae8815a42d75e7dfb139f196 to your computer and use it in GitHub Desktop.
HaishinKit diff
diff --git a/Examples/iOS/LiveViewController.swift b/Examples/iOS/LiveViewController.swift
index 785799a..f56ae39 100644
--- a/Examples/iOS/LiveViewController.swift
+++ b/Examples/iOS/LiveViewController.swift
@@ -43,6 +43,8 @@ final class LiveViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
+
+ rtmpConnection.flashVer = "SomeCustomName"
rtmpStream = RTMPStream(connection: rtmpConnection)
rtmpStream.syncOrientation = true
@@ -52,8 +54,9 @@ final class LiveViewController: UIViewController {
"continuousExposure": true
]
rtmpStream.videoSettings = [
- "width": 720,
- "height": 1280
+ "width": 1280,
+ "height": 720,
+ "maxKeyFrameIntervalDuration": 3
]
rtmpStream.audioSettings = [
"sampleRate": sampleRate
diff --git a/Examples/iOS/Preference.swift b/Examples/iOS/Preference.swift
index 4f50a95..228ff6e 100644
--- a/Examples/iOS/Preference.swift
+++ b/Examples/iOS/Preference.swift
@@ -1,6 +1,6 @@
struct Preference {
static var defaultInstance: Preference = Preference()
- var uri: String? = "rtmp://test:test@192.168.11.15/live"
- var streamName: String? = "live"
+ var uri: String? = "rtmp://ca.pscp.tv:80/x"
+ var streamName: String? = "sekret"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment