This pull request primarily focuses on adding support for simulcast in the SignalingOffer structure and handling it in the PeerChannel class. The changes include adding simulcast to SignalingOffer, decoding it in the Codable extension, and updating WrapperVideoEncoderFactory.shared.simulcastEnabled based on the simulcast value in PeerChannel. The CHANGES.md file is also updated to reflect these changes.
Here are the key changes:
Sora/Signaling.swift:
Added a new optional property simulcast of type Bool? to SignalingOffer structure, which indicates whether simulcast is enabled or not.
In the Codable extension of SignalingOffer, added decoding for simulcast from the container. [1][2]
Sora/PeerChannel.swift:
In the PeerChannel class, added a check for offer.simulcast. If it's not nil, WrapperVideoEncoderFactory.shared.simulcastEnabled is updated with its value.
CHANGES.md:
Added entries about the addition of simulcast to SignalingOffer and the update of WrapperVideoEncoderFactory.shared.simulcastEnabled based on simulcast value.
変更内容
SignalingOffer
にsimulcast
を追加するWrapperVideoEncoderFactory.shared.simulcastEnabled
の値を type: offer の際に設定される simulcast の値で上書きするsimulcast
の値を利用するThis pull request primarily focuses on adding support for
simulcast
in theSignalingOffer
structure and handling it in thePeerChannel
class. The changes include addingsimulcast
toSignalingOffer
, decoding it in theCodable
extension, and updatingWrapperVideoEncoderFactory.shared.simulcastEnabled
based on thesimulcast
value inPeerChannel
. TheCHANGES.md
file is also updated to reflect these changes.Here are the key changes:
Sora/Signaling.swift
:simulcast
of typeBool?
toSignalingOffer
structure, which indicates whether simulcast is enabled or not.Codable
extension ofSignalingOffer
, added decoding forsimulcast
from the container. [1] [2]Sora/PeerChannel.swift
:PeerChannel
class, added a check foroffer.simulcast
. If it's notnil
,WrapperVideoEncoderFactory.shared.simulcastEnabled
is updated with its value.CHANGES.md
:simulcast
toSignalingOffer
and the update ofWrapperVideoEncoderFactory.shared.simulcastEnabled
based onsimulcast
value.