Skip to content

Commit

Permalink
VideoCodec 選択肢に none を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
zztkm committed Jan 20, 2025
1 parent f941e01 commit 26ba727
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions SimulcastSample/SimulcastSample/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="jHA-3S-8CN">
<rect key="frame" x="20" y="6.5" width="335" height="32"/>
<segments>
<segment title="none"/>
<segment title="VP8"/>
<segment title="VP9"/>
<segment title="AV1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ class ConfigViewController: UITableViewController {
// ユーザーが選択した設定をUIコントロールから取得します。
let videoCodec: VideoCodec
switch videoCodecSegmentedControl.selectedSegmentIndex {
case 0: videoCodec = .vp8
case 1: videoCodec = .vp9
case 2: videoCodec = .av1
case 3: videoCodec = .h264
case 4: videoCodec = .h265
case 0: videoCodec = .default
case 1: videoCodec = .vp8
case 2: videoCodec = .vp9
case 3: videoCodec = .av1
case 4: videoCodec = .h264
case 5: videoCodec = .h265
default: fatalError()
}

Expand Down
1 change: 1 addition & 0 deletions SpotlightSample/SpotlightSample/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="jHA-3S-8CN">
<rect key="frame" x="20" y="6.5" width="335" height="32"/>
<segments>
<segment title="none"/>
<segment title="VP8"/>
<segment title="VP9"/>
<segment title="AV1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ class ConfigViewController: UITableViewController {
// ユーザーが選択した設定をUIコントロールから取得します。
let videoCodec: VideoCodec
switch videoCodecSegmentedControl.selectedSegmentIndex {
case 0: videoCodec = .vp8
case 1: videoCodec = .vp9
case 2: videoCodec = .av1
case 3: videoCodec = .h264
case 4: videoCodec = .h265
case 0: videoCodec = .default
case 1: videoCodec = .vp8
case 2: videoCodec = .vp9
case 3: videoCodec = .av1
case 4: videoCodec = .h264
case 5: videoCodec = .h265
default: fatalError()
}

Expand Down

0 comments on commit 26ba727

Please sign in to comment.