Skip to content

Commit

Permalink
s/senderDegradationPreference/degradationPreference/g
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Feb 20, 2024
1 parent c67db31 commit 46b2f6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- @miosakuma
- [ADD] VideoCodec に H265 を追加する
- @enm10k
- [UPDATE] WebRTCConfiguration に senderDegradationPreference を追加する
- [UPDATE] WebRTCConfiguration に degradationPreference を追加する
- @enm10k
- [UPDATE] 解像度に qHD (960x540) を追加する
- @enm10k
Expand Down
2 changes: 1 addition & 1 deletion Sora/PeerChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ class PeerChannel: NSObject, RTCPeerConnectionDelegate {
videoTransceiver.sender.track = videoTrack
}

if let degradationPreference = configuration.webRTCConfiguration.senderDegradationPreference {
if let degradationPreference = configuration.webRTCConfiguration.degradationPreference {
let parameters = videoTransceiver.sender.parameters
parameters.degradationPreference = NSNumber(value: degradationPreference.nativeValue.rawValue)
videoTransceiver.sender.parameters = parameters
Expand Down
2 changes: 1 addition & 1 deletion Sora/WebRTCConfigration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public struct WebRTCConfiguration {
public var sdpSemantics: SDPSemantics = .unifiedPlan

/// (リソースの不足により) 送信する映像の品質が劣化した場合の挙動
public var senderDegradationPreference: DegradationPreference?
public var degradationPreference: DegradationPreference?

// MARK: - インスタンスの生成

Expand Down

0 comments on commit 46b2f6d

Please sign in to comment.