mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Add peerId
This commit is contained in:
parent
6112405c9f
commit
5deca3fac7
@ -2988,6 +2988,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
|||||||
|
|
||||||
result.append(OngoingGroupCallContext.MediaChannelDescription(
|
result.append(OngoingGroupCallContext.MediaChannelDescription(
|
||||||
kind: .audio,
|
kind: .audio,
|
||||||
|
peerId: participant.peer.id.id._internalGetInt64Value(),
|
||||||
audioSsrc: audioSsrc,
|
audioSsrc: audioSsrc,
|
||||||
videoDescription: nil
|
videoDescription: nil
|
||||||
))
|
))
|
||||||
@ -2999,6 +3000,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
|||||||
|
|
||||||
result.append(OngoingGroupCallContext.MediaChannelDescription(
|
result.append(OngoingGroupCallContext.MediaChannelDescription(
|
||||||
kind: .audio,
|
kind: .audio,
|
||||||
|
peerId: participant.peer.id.id._internalGetInt64Value(),
|
||||||
audioSsrc: screencastSsrc,
|
audioSsrc: screencastSsrc,
|
||||||
videoDescription: nil
|
videoDescription: nil
|
||||||
))
|
))
|
||||||
|
@ -270,11 +270,13 @@ public final class OngoingGroupCallContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var kind: Kind
|
public var kind: Kind
|
||||||
|
public var peerId: Int64
|
||||||
public var audioSsrc: UInt32
|
public var audioSsrc: UInt32
|
||||||
public var videoDescription: String?
|
public var videoDescription: String?
|
||||||
|
|
||||||
public init(kind: Kind, audioSsrc: UInt32, videoDescription: String?) {
|
public init(kind: Kind, peerId: Int64, audioSsrc: UInt32, videoDescription: String?) {
|
||||||
self.kind = kind
|
self.kind = kind
|
||||||
|
self.peerId = peerId
|
||||||
self.audioSsrc = audioSsrc
|
self.audioSsrc = audioSsrc
|
||||||
self.videoDescription = videoDescription
|
self.videoDescription = videoDescription
|
||||||
}
|
}
|
||||||
@ -575,6 +577,7 @@ public final class OngoingGroupCallContext {
|
|||||||
}
|
}
|
||||||
return OngoingGroupCallMediaChannelDescription(
|
return OngoingGroupCallMediaChannelDescription(
|
||||||
type: mappedType,
|
type: mappedType,
|
||||||
|
peerId: channel.peerId,
|
||||||
audioSsrc: channel.audioSsrc,
|
audioSsrc: channel.audioSsrc,
|
||||||
videoDescription: channel.videoDescription
|
videoDescription: channel.videoDescription
|
||||||
)
|
)
|
||||||
@ -688,6 +691,7 @@ public final class OngoingGroupCallContext {
|
|||||||
}
|
}
|
||||||
return OngoingGroupCallMediaChannelDescription(
|
return OngoingGroupCallMediaChannelDescription(
|
||||||
type: mappedType,
|
type: mappedType,
|
||||||
|
peerId: channel.peerId,
|
||||||
audioSsrc: channel.audioSsrc,
|
audioSsrc: channel.audioSsrc,
|
||||||
videoDescription: channel.videoDescription
|
videoDescription: channel.videoDescription
|
||||||
)
|
)
|
||||||
|
@ -332,10 +332,12 @@ typedef NS_ENUM(int32_t, OngoingGroupCallMediaChannelType) {
|
|||||||
@interface OngoingGroupCallMediaChannelDescription : NSObject
|
@interface OngoingGroupCallMediaChannelDescription : NSObject
|
||||||
|
|
||||||
@property (nonatomic, readonly) OngoingGroupCallMediaChannelType type;
|
@property (nonatomic, readonly) OngoingGroupCallMediaChannelType type;
|
||||||
|
@property (nonatomic, readonly) uint64_t peerId;
|
||||||
@property (nonatomic, readonly) uint32_t audioSsrc;
|
@property (nonatomic, readonly) uint32_t audioSsrc;
|
||||||
@property (nonatomic, strong, readonly) NSString * _Nullable videoDescription;
|
@property (nonatomic, strong, readonly) NSString * _Nullable videoDescription;
|
||||||
|
|
||||||
- (instancetype _Nonnull)initWithType:(OngoingGroupCallMediaChannelType)type
|
- (instancetype _Nonnull)initWithType:(OngoingGroupCallMediaChannelType)type
|
||||||
|
peerId:(int64_t)peerId
|
||||||
audioSsrc:(uint32_t)audioSsrc
|
audioSsrc:(uint32_t)audioSsrc
|
||||||
videoDescription:(NSString * _Nullable)videoDescription;
|
videoDescription:(NSString * _Nullable)videoDescription;
|
||||||
|
|
||||||
|
@ -3029,11 +3029,13 @@ encryptDecrypt:(NSData * _Nullable (^ _Nullable)(NSData * _Nonnull, bool))encryp
|
|||||||
@implementation OngoingGroupCallMediaChannelDescription
|
@implementation OngoingGroupCallMediaChannelDescription
|
||||||
|
|
||||||
- (instancetype _Nonnull)initWithType:(OngoingGroupCallMediaChannelType)type
|
- (instancetype _Nonnull)initWithType:(OngoingGroupCallMediaChannelType)type
|
||||||
|
peerId:(int64_t)peerId
|
||||||
audioSsrc:(uint32_t)audioSsrc
|
audioSsrc:(uint32_t)audioSsrc
|
||||||
videoDescription:(NSString * _Nullable)videoDescription {
|
videoDescription:(NSString * _Nullable)videoDescription {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self != nil) {
|
if (self != nil) {
|
||||||
_type = type;
|
_type = type;
|
||||||
|
_peerId = peerId;
|
||||||
_audioSsrc = audioSsrc;
|
_audioSsrc = audioSsrc;
|
||||||
_videoDescription = videoDescription;
|
_videoDescription = videoDescription;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user