Skip to content

Commit

Permalink
Merge branch 'release/sora-ios-sdk-2023.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Aug 1, 2023
2 parents 8d98d69 + 10b9326 commit 35f8454
Show file tree
Hide file tree
Showing 29 changed files with 447 additions and 178 deletions.
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,31 @@

## develop

## sora-ios-sdk-2023.2.0

- [ADD] DataChannelSample の映像コーデックに AV1 を追加する
- @miosakuma
- [ADD] DecoStreamingSample の映像コーデックに AV1 を追加する
- @miosakuma
- [ADD] ScreenCastSample の映像コーデックに AV1 を追加する
- @miosakuma
- [ADD] SimulcastSample の映像コーデックに VP9 と AV1 を追加する
- @miosakuma
- [ADD] VideoChatSample の映像コーデックに AV1 を追加する
- @miosakuma
- [ADD] VideoChatSample に映像コーデックプロファイル設定を追加する
- @miosakuma
- [CHANGE] システム条件を変更する
- macOS 13.4.1 以降
- Xcode 14.3.1
- Swift 5.8.1
- WebRTC SFU Sora 2023.1.0 以降
- CocoaPods 1.12.1 以降
- @miosakuma
- [FIX] ScreenCastSample の H.264 の映像が送信されない不具合を修正する
- 画像を半分にリサイズしてエンコード可能なサイズとする
- @szktty

## sora-ios-sdk-2023.1.0

- [CHANGE] システム条件を変更する
Expand Down
116 changes: 59 additions & 57 deletions DataChannelSample/DataChannelSample/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class ConfigViewController: UITableViewController {
case 1: videoCodec = .vp9
case 2: videoCodec = .vp8
case 3: videoCodec = .h264
case 4: videoCodec = .av1
default: fatalError()
}

Expand Down Expand Up @@ -192,7 +193,7 @@ class ConfigViewController: UITableViewController {
// 入力された設定を元にSoraへ接続を行います。
// ビデオチャットアプリでは複数のユーザーが同時に配信を行う必要があるため、
// role 引数には .sendrecv を指定し、マルチストリームを有効にします。
var configuration = Configuration(urlCandidates: Environment.urlCandidates, channelId: channelId, role: role, multistreamEnabled: multistreamEnabledSwitch.isOn)
var configuration = Configuration(urlCandidates: Environment.urls, channelId: channelId, role: role, multistreamEnabled: multistreamEnabledSwitch.isOn)
configuration.videoEnabled = videoEnabledSwitch.isOn
configuration.videoCodec = videoCodec
configuration.audioEnabled = audioEnabledSwitch.isOn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
*/
enum Environment {
// Sora SDKの接続先URL。複数指定可能
static let urlCandidates: [URL] = [URL(string: "wss://sora.example.com/signaling")!]
static let urls: [URL] = [URL(string: "wss://sora.example.com/signaling")!]

// チャネル ID
static let channelId = "sora"
Expand Down
1 change: 0 additions & 1 deletion DataChannelSample/DataChannelSample/SoraSDKManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class SoraSDKManager {
guard currentMediaChannel == nil else {
return
}

// Soraに接続を試みます。
_ = Sora.shared.connect(configuration: configuration) { [weak self] mediaChannel, error in
// 接続に成功した場合は、mediaChannelに値が返され、errorがnilになります。
Expand Down
2 changes: 1 addition & 1 deletion DataChannelSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ platform :ios, '13.0'

target 'DataChannelSample' do
use_frameworks!
pod 'Sora', '2023.1.0'
pod 'Sora', '2023.2.0'
pod 'SwiftLint'
pod 'SwiftFormat/CLI'
end
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -375,7 +375,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
19 changes: 10 additions & 9 deletions DecoStreamingSample/DecoStreamingSample/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Qew-Sz-X5Y">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Qew-Sz-X5Y">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -13,7 +13,7 @@
<objects>
<navigationController id="Qew-Sz-X5Y" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" id="MfB-Z5-WoX">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<connections>
Expand All @@ -36,14 +36,14 @@
<tableViewSection headerTitle="接続設定" id="Qac-un-34b">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="fuI-OV-gc6">
<rect key="frame" x="0.0" y="49.5" width="375" height="44"/>
<rect key="frame" x="0.0" y="55.5" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="fuI-OV-gc6" id="vLZ-Un-BKS">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" placeholder="channel_id" textAlignment="right" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="u9h-FF-DeM">
<rect key="frame" x="135" y="11.5" width="220" height="21"/>
<rect key="frame" x="135" y="11" width="220" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<textInputTraits key="textInputTraits"/>
</textField>
Expand All @@ -68,7 +68,7 @@
<tableViewSection headerTitle="配信設定" footerTitle="使用するビデオコーデックを選択します。" id="r05-D8-8q3">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="eZZ-hr-Kb0">
<rect key="frame" x="0.0" y="151" width="375" height="44"/>
<rect key="frame" x="0.0" y="163" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="eZZ-hr-Kb0" id="5z1-Qz-YLu">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
Expand All @@ -77,10 +77,11 @@
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="xyp-14-57D">
<rect key="frame" x="20" y="6.5" width="335" height="32"/>
<segments>
<segment title="デフォルト"/>
<segment title="none"/>
<segment title="VP9"/>
<segment title="VP8"/>
<segment title="H.264"/>
<segment title="AV1"/>
</segments>
</segmentedControl>
</subviews>
Expand All @@ -96,7 +97,7 @@
<tableViewSection id="h05-6K-0hc">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="Ea7-op-r9J">
<rect key="frame" x="0.0" y="239.5" width="375" height="44"/>
<rect key="frame" x="0.0" y="255" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Ea7-op-r9J" id="dkJ-Rh-xjB">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
Expand Down Expand Up @@ -147,7 +148,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleAspectFill" translatesAutoresizingMaskIntoConstraints="NO" id="jCW-IO-nPu" customClass="VideoView" customModule="Sora">
<rect key="frame" x="0.0" y="44" width="375" height="473"/>
<rect key="frame" x="0.0" y="64" width="375" height="453"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<pickerView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="epT-1s-PRg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class PublisherConfigViewController: UITableViewController {
case 1: videoCodec = .vp9
case 2: videoCodec = .vp8
case 3: videoCodec = .h264
case 4: videoCodec = .av1
default: fatalError()
}

Expand Down
2 changes: 1 addition & 1 deletion DecoStreamingSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ platform :ios, '13.0'

target 'DecoStreamingSample' do
use_frameworks!
pod 'Sora', '2023.1.0'
pod 'Sora', '2023.2.0'

pod 'SwiftLint'
pod 'SwiftFormat/CLI'
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Please read https://github.com/shiguredo/oss before use.

このリポジトリの全てのサンプルアプリは、 [Sora iOS SDK 2022.6.0](https://github.com/shiguredo/sora-ios-sdk/releases/tag/2022.6.0) を使用しています。

- iOS 13 以降
- iOS 15 以降
- アーキテクチャ arm64 (シミュレーターの動作は未保証)
- macOS 13.3 以降
- Xcode 14.3
- Swift 5.8
- CocoaPods 1.12.0 以降
- WebRTC SFU Sora 2022.2.0 以降
- macOS 13.4.1 以降
- Xcode 14.3.1
- Swift 5.8.1
- CocoaPods 1.12.1 以降
- WebRTC SFU Sora 2023.1.0 以降

Xcode と Swift のバージョンによっては、 CocoaPods で取得できるバイナリに互換性がない可能性があります。

Expand Down
2 changes: 1 addition & 1 deletion ScreenCastSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ platform :ios, '13.0'

target 'ScreenCastSample' do
use_frameworks!
pod 'Sora', '2023.1.0'
pod 'Sora', '2023.2.0'

pod 'SwiftLint'
pod 'SwiftFormat/CLI'
Expand Down
4 changes: 2 additions & 2 deletions ScreenCastSample/ScreenCastSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -383,7 +383,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
Loading

0 comments on commit 35f8454

Please sign in to comment.