diff --git a/WebRTCiOSSDK/api/AntMediaClient.swift b/WebRTCiOSSDK/api/AntMediaClient.swift index 5c623f7..95ae1fa 100644 --- a/WebRTCiOSSDK/api/AntMediaClient.swift +++ b/WebRTCiOSSDK/api/AntMediaClient.swift @@ -1021,8 +1021,13 @@ open class AntMediaClient: NSObject, AntMediaClientProtocol { message: broadcastObject ?? [:] ) } + else if definition == RESOLUTION_CHANGE_INFO_COMMAND { + let streamId = message[STREAM_ID] as? String ?? ""; + self.delegate?.eventHappened(streamId: streamId, eventType: definition, payload: message) + } break; + case ROOM_INFORMATION_COMMAND: if let updatedStreamsInTheRoom = message[STREAMS] as? [String] { //check that there is a new stream exists @@ -1054,6 +1059,9 @@ open class AntMediaClient: NSObject, AntMediaClientProtocol { } + break; + case "pong": + //dont do anything break; case "error": guard let definition = message["definition"] as? String else { diff --git a/WebRTCiOSSDK/api/AntMediaClientProtocol.swift b/WebRTCiOSSDK/api/AntMediaClientProtocol.swift index 18ac219..3b3b6cc 100644 --- a/WebRTCiOSSDK/api/AntMediaClientProtocol.swift +++ b/WebRTCiOSSDK/api/AntMediaClientProtocol.swift @@ -36,6 +36,7 @@ let EVENT_TYPE_CAM_TURNED_OFF = "CAM_TURNED_OFF"; let EVENT_TYPE_CAM_TURNED_ON = "CAM_TURNED_ON"; let GET_BROADCAST_OBJECT_COMMAND = "getBroadcastObject" let BROADCAST_OBJECT_NOTIFICATION = "broadcastObject" +public let RESOLUTION_CHANGE_INFO_COMMAND = "resolutionChangeInfo" public let EVENT_TYPE_TRACK_LIST_UPDATED = "TRACK_LIST_UPDATED" public let EVENT_TYPE_VIDEO_TRACK_ASSIGNMENT_LIST = "VIDEO_TRACK_ASSIGNMENT_LIST";