Skip to content

Commit

Permalink
Bump to up 1.7.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Dec 10, 2023
1 parent a5c0b3a commit 4d16635
Show file tree
Hide file tree
Showing 170 changed files with 904 additions and 1,144 deletions.
2 changes: 1 addition & 1 deletion Examples/iOS/IngestViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class IngestViewController: UIViewController {
pipIntentView.isUserInteractionEnabled = true
view.addSubview(pipIntentView)

// If you're using multi-camera functionality, please make sure isMultiCamSessionEnabled = true. Initialization point.
// If you want to use the multi-camera feature, please make sure stream.isMultiCamSessionEnabled = true. Before attachCamera or attachAudio.
stream.isMultiCamSessionEnabled = true
if let orientation = DeviceUtil.videoOrientation(by: UIApplication.shared.statusBarOrientation) {
stream.videoOrientation = orientation
Expand Down
2 changes: 1 addition & 1 deletion HaishinKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "HaishinKit"
s.version = "1.7.1"
s.version = "1.7.2"
s.summary = "Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS."
s.swift_version = "5.9"

Expand Down
8 changes: 4 additions & 4 deletions HaishinKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2342,7 +2342,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.7.1;
MARKETING_VERSION = 1.7.2;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -2388,7 +2388,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.7.1;
MARKETING_VERSION = 1.7.2;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
ONLY_ACTIVE_ARCH = NO;
Expand Down Expand Up @@ -2773,7 +2773,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.7.1;
MARKETING_VERSION = 1.7.2;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20";
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
Expand Down Expand Up @@ -2827,7 +2827,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.7.1;
MARKETING_VERSION = 1.7.2;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20";
MTL_FAST_MATH = YES;
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ Supports two camera video sources. A picture-in-picture display that shows the i
|<img width="1382" alt="" src="https://user-images.githubusercontent.com/810189/210043421-ceb18cb7-9b50-43fa-a0a2-8b92b78d9df1.png">|<img width="1382" alt="" src="https://user-images.githubusercontent.com/810189/210043687-a99f21b6-28b2-4170-96de-6c814debd84d.png">|

```swift
// If you're using multi-camera functionality, please make sure to call the attachMultiCamera method first. This is required for iOS 14 and 15, among others.
// If you want to use the multi-camera feature, please make sure stream.isMultiCamSessionEnabled = true. Before attachCamera or attachAudio.
stream.isMultiCamSessionEnabled = true

let back = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back)
stream.attachCamera(back)
if #available(iOS 13.0, *) {
let front = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .front)
stream.attachMultiCamera(front)
}
let back = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back)
stream.attachCamera(back)
rtmpStream.attachAudio(AVCaptureDevice.default(for: .audio))
```

Expand Down Expand Up @@ -254,9 +256,11 @@ stream.frameRate = 30
stream.sessionPreset = AVCaptureSession.Preset.medium

/// Specifies the video capture settings.
stream.videoCapture(for: 0).isVideoMirrored = false
stream.videoCapture(for: 0).preferredVideoStabilizationMode = .auto
// stream.videoCapture(for: 0).isVideoMirrored = false
stream.videoCapture(for: 0).map {
// $0.isVideoMirrored = true
$0.preferredVideoStabilizationMode = .standard
// $0.colorFormat = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
}
```

### 🔊 [AudioCodecSettings](https://shogo4405.github.io/HaishinKit.swift/Structs/AudioCodecSettings.html)
Expand Down
125 changes: 61 additions & 64 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a title="Classes Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="index.html">HaishinKit 1.7.1 Docs</a> (88% documented)</p>
<p><a href="index.html">HaishinKit 1.7.2 Docs</a> (88% documented)</p>
<div class="header-right">
<form role="search" action="search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
Expand Down Expand Up @@ -194,9 +194,6 @@
<li class="nav-group-task">
<a href="Extensions/AudioStreamBasicDescription.html">AudioStreamBasicDescription</a>
</li>
<li class="nav-group-task">
<a href="Extensions.html#/IOMixer">IOMixer</a>
</li>
<li class="nav-group-task">
<a href="Extensions.html#/s:13SRTHaishinKit9SRTSocketC">SRTSocket</a>
</li>
Expand Down Expand Up @@ -319,64 +316,6 @@ <h1>Classes</h1>
<section class="section task-group-section">
<div class="task-group">
<ul>
<li class="item">
<div>
<code>
<a name="/s:10HaishinKit8TSReaderC"></a>
<a name="//apple_ref/swift/Class/TSReader" class="dashAnchor"></a>
<a class="token" href="#/s:10HaishinKit8TSReaderC">TSReader</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The TSReader class represents read MPEG-2 transport stream data.</p>

<a href="Classes/TSReader.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">TSReader</span></code></pre>

</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:10HaishinKit8TSWriterC"></a>
<a name="//apple_ref/swift/Class/TSWriter" class="dashAnchor"></a>
<a class="token" href="#/s:10HaishinKit8TSWriterC">TSWriter</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The TSWriter class represents writes MPEG-2 transport stream data.</p>

<a href="Classes/TSWriter.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">TSWriter</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">TSWriter</span><span class="p">:</span> <span class="kt"><a href="Protocols/IOMuxer.html">IOMuxer</a></span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">TSWriter</span><span class="p">:</span> <span class="kt"><a href="Protocols/Running.html">Running</a></span></code></pre>

</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
Expand Down Expand Up @@ -455,7 +394,7 @@ <h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">@available(tvOS 17.0, *)</span>
<span class="kd">public</span> <span class="kd">class</span> <span class="kt">IOVideoCaptureUnit</span> <span class="p">:</span> <span class="kt">IOCaptureUnit</span></code></pre>
<span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">IOVideoCaptureUnit</span> <span class="p">:</span> <span class="kt">IOCaptureUnit</span></code></pre>

</div>
</div>
Expand Down Expand Up @@ -596,6 +535,64 @@ <h4>Declaration</h4>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:10HaishinKit8TSReaderC"></a>
<a name="//apple_ref/swift/Class/TSReader" class="dashAnchor"></a>
<a class="token" href="#/s:10HaishinKit8TSReaderC">TSReader</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The TSReader class represents read MPEG-2 transport stream data.</p>

<a href="Classes/TSReader.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">TSReader</span></code></pre>

</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:10HaishinKit8TSWriterC"></a>
<a name="//apple_ref/swift/Class/TSWriter" class="dashAnchor"></a>
<a class="token" href="#/s:10HaishinKit8TSWriterC">TSWriter</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The TSWriter class represents writes MPEG-2 transport stream data.</p>

<a href="Classes/TSWriter.html" class="slightly-smaller">See more</a>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">TSWriter</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">TSWriter</span><span class="p">:</span> <span class="kt"><a href="Protocols/IOMuxer.html">IOMuxer</a></span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">TSWriter</span><span class="p">:</span> <span class="kt"><a href="Protocols/Running.html">Running</a></span></code></pre>

</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
Expand Down Expand Up @@ -1088,7 +1085,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-11-09)</p>
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-12-10)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
7 changes: 2 additions & 5 deletions docs/Classes/ByteArray.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a title="ByteArray Class Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../index.html">HaishinKit 1.7.1 Docs</a> (88% documented)</p>
<p><a href="../index.html">HaishinKit 1.7.2 Docs</a> (88% documented)</p>
<div class="header-right">
<form role="search" action="../search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
Expand Down Expand Up @@ -194,9 +194,6 @@
<li class="nav-group-task">
<a href="../Extensions/AudioStreamBasicDescription.html">AudioStreamBasicDescription</a>
</li>
<li class="nav-group-task">
<a href="../Extensions.html#/IOMixer">IOMixer</a>
</li>
<li class="nav-group-task">
<a href="../Extensions.html#/s:13SRTHaishinKit9SRTSocketC">SRTSocket</a>
</li>
Expand Down Expand Up @@ -1248,7 +1245,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-11-09)</p>
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-12-10)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
7 changes: 2 additions & 5 deletions docs/Classes/ByteArray/Error.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a title="Error Enumeration Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../../index.html">HaishinKit 1.7.1 Docs</a> (88% documented)</p>
<p><a href="../../index.html">HaishinKit 1.7.2 Docs</a> (88% documented)</p>
<div class="header-right">
<form role="search" action="../../search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
Expand Down Expand Up @@ -194,9 +194,6 @@
<li class="nav-group-task">
<a href="../../Extensions/AudioStreamBasicDescription.html">AudioStreamBasicDescription</a>
</li>
<li class="nav-group-task">
<a href="../../Extensions.html#/IOMixer">IOMixer</a>
</li>
<li class="nav-group-task">
<a href="../../Extensions.html#/s:13SRTHaishinKit9SRTSocketC">SRTSocket</a>
</li>
Expand Down Expand Up @@ -385,7 +382,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-11-09)</p>
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-12-10)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
7 changes: 2 additions & 5 deletions docs/Classes/Event.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a title="Event Class Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../index.html">HaishinKit 1.7.1 Docs</a> (88% documented)</p>
<p><a href="../index.html">HaishinKit 1.7.2 Docs</a> (88% documented)</p>
<div class="header-right">
<form role="search" action="../search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
Expand Down Expand Up @@ -194,9 +194,6 @@
<li class="nav-group-task">
<a href="../Extensions/AudioStreamBasicDescription.html">AudioStreamBasicDescription</a>
</li>
<li class="nav-group-task">
<a href="../Extensions.html#/IOMixer">IOMixer</a>
</li>
<li class="nav-group-task">
<a href="../Extensions.html#/s:13SRTHaishinKit9SRTSocketC">SRTSocket</a>
</li>
Expand Down Expand Up @@ -561,7 +558,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-11-09)</p>
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-12-10)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
7 changes: 2 additions & 5 deletions docs/Classes/Event/Name.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a title="Name Structure Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../../index.html">HaishinKit 1.7.1 Docs</a> (88% documented)</p>
<p><a href="../../index.html">HaishinKit 1.7.2 Docs</a> (88% documented)</p>
<div class="header-right">
<form role="search" action="../../search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
Expand Down Expand Up @@ -194,9 +194,6 @@
<li class="nav-group-task">
<a href="../../Extensions/AudioStreamBasicDescription.html">AudioStreamBasicDescription</a>
</li>
<li class="nav-group-task">
<a href="../../Extensions.html#/IOMixer">IOMixer</a>
</li>
<li class="nav-group-task">
<a href="../../Extensions.html#/s:13SRTHaishinKit9SRTSocketC">SRTSocket</a>
</li>
Expand Down Expand Up @@ -571,7 +568,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-11-09)</p>
<p>&copy; 2023 <a class="link" href="https://github.com/shogo4405/HaishinKit.swift" target="_blank" rel="external noopener">shogo4405</a>. All rights reserved. (Last updated: 2023-12-10)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down

0 comments on commit 4d16635

Please sign in to comment.