@@ -544,6 +544,9 @@ public struct SignalingNotify {
544544 /// イベントの種別
545545 public var eventType : String
546546
547+ /// タイムスタンプ
548+ public var timestamp : String ?
549+
547550 // MARK: 接続情報
548551
549552 /// ロール
@@ -561,6 +564,9 @@ public struct SignalingNotify {
561564 /// 接続 ID
562565 public var connectionId : String ?
563566
567+ /// スポットライトでフォーカスされる配信数
568+ public var spotlightNumber : Int ?
569+
564570 /// 音声の可否
565571 public var audioEnabled : Bool ?
566572
@@ -625,6 +631,15 @@ public struct SignalingNotify {
625631
626632 /// 再開された RTP ストリームの送信元接続 ID
627633 public var streamId : String ?
634+
635+ /// 音声ストリーミング処理に失敗したコネクション ID
636+ var failedConnectionId : String ?
637+
638+ /// ICE コネクションステートの現在の状態
639+ var currentState : String ?
640+
641+ /// ICE コネクションステートの遷移前の状態
642+ var previousState : String ?
628643}
629644
630645/**
@@ -1144,11 +1159,13 @@ extension SignalingPush: Codable {
11441159extension SignalingNotify : Codable {
11451160 enum CodingKeys : String , CodingKey {
11461161 case event_type
1162+ case timestamp
11471163 case role
11481164 case session_id
11491165 case client_id
11501166 case bundle_id
11511167 case connection_id
1168+ case spotlight_number
11521169 case audio
11531170 case video
11541171 case minutes
@@ -1168,18 +1185,25 @@ extension SignalingNotify: Codable {
11681185 case recv_connection_id
11691186 case send_connection_id
11701187 case stream_id
1188+ case failed_connection_id
1189+ case current_state
1190+ case previous_state
11711191 }
11721192
11731193 public init ( from decoder: Decoder ) throws {
11741194 let container = try decoder. container ( keyedBy: CodingKeys . self)
11751195 eventType = try container. decode ( String . self,
11761196 forKey: . event_type)
1197+ timestamp = try container. decodeIfPresent ( String . self,
1198+ forKey: . timestamp)
11771199 role = try container. decodeIfPresent ( SignalingRole . self, forKey: . role)
11781200 sessionId = try container. decodeIfPresent ( String . self, forKey: . session_id)
11791201 clientId = try container. decodeIfPresent ( String . self, forKey: . client_id)
11801202 bundleId = try container. decodeIfPresent ( String . self, forKey: . bundle_id)
11811203 connectionId = try container. decodeIfPresent ( String . self,
11821204 forKey: . connection_id)
1205+ spotlightNumber = try container. decodeIfPresent ( Int . self,
1206+ forKey: . spotlight_number)
11831207 audioEnabled = try container. decodeIfPresent ( Bool . self, forKey: . audio)
11841208 videoEnabled = try container. decodeIfPresent ( Bool . self, forKey: . video)
11851209 connectionTime = try container. decodeIfPresent ( Int . self, forKey: . minutes)
@@ -1211,6 +1235,10 @@ extension SignalingNotify: Codable {
12111235 try container. decodeIfPresent ( String . self, forKey: . send_connection_id)
12121236 streamId =
12131237 try container. decodeIfPresent ( String . self, forKey: . stream_id)
1238+ failedConnectionId =
1239+ try container. decodeIfPresent ( String . self, forKey: . failed_connection_id)
1240+ currentState = try container. decodeIfPresent ( String . self, forKey: . current_state)
1241+ previousState = try container. decodeIfPresent ( String . self, forKey: . previous_state)
12141242 }
12151243
12161244 public func encode( to encoder: Encoder ) throws {
0 commit comments