mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
videocontenttype [skip ci]
This commit is contained in:
parent
98849cb5b0
commit
8e2696f4a9
@ -155,6 +155,7 @@ public final class OngoingGroupCallContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public enum VideoContentType {
|
public enum VideoContentType {
|
||||||
|
case none
|
||||||
case generic
|
case generic
|
||||||
case screencast
|
case screencast
|
||||||
}
|
}
|
||||||
@ -204,6 +205,8 @@ public final class OngoingGroupCallContext {
|
|||||||
_videoContentType = .generic
|
_videoContentType = .generic
|
||||||
case .screencast:
|
case .screencast:
|
||||||
_videoContentType = .screencast
|
_videoContentType = .screencast
|
||||||
|
case .none:
|
||||||
|
_videoContentType = .none
|
||||||
}
|
}
|
||||||
|
|
||||||
let videoSources = self.videoSources
|
let videoSources = self.videoSources
|
||||||
|
|||||||
@ -184,6 +184,7 @@ typedef NS_ENUM(int32_t, OngoingGroupCallBroadcastPartStatus) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef NS_ENUM(int32_t, OngoingGroupCallVideoContentType) {
|
typedef NS_ENUM(int32_t, OngoingGroupCallVideoContentType) {
|
||||||
|
OngoingGroupCallVideoContentTypeNone,
|
||||||
OngoingGroupCallVideoContentTypeGeneric,
|
OngoingGroupCallVideoContentTypeGeneric,
|
||||||
OngoingGroupCallVideoContentTypeScreencast,
|
OngoingGroupCallVideoContentTypeScreencast,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -867,6 +867,16 @@ private:
|
|||||||
_networkStateUpdated = [networkStateUpdated copy];
|
_networkStateUpdated = [networkStateUpdated copy];
|
||||||
_videoCapturer = videoCapturer;
|
_videoCapturer = videoCapturer;
|
||||||
|
|
||||||
|
tgcalls::VideoContentType _videoContentType;
|
||||||
|
switch (videoContentType) {
|
||||||
|
case OngoingGroupCallVideoContentTypeGeneric:
|
||||||
|
_videoContentType = tgcalls::VideoContentType::Generic;
|
||||||
|
case OngoingGroupCallVideoContentTypeScreencast:
|
||||||
|
_videoContentType = tgcalls::VideoContentType::Screencast;
|
||||||
|
case OngoingGroupCallVideoContentTypeNone:
|
||||||
|
_videoContentType = tgcalls::VideoContentType::None;
|
||||||
|
}
|
||||||
|
|
||||||
__weak GroupCallThreadLocalContext *weakSelf = self;
|
__weak GroupCallThreadLocalContext *weakSelf = self;
|
||||||
_instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){
|
_instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){
|
||||||
.threads = tgcalls::StaticThreads::getThreads(),
|
.threads = tgcalls::StaticThreads::getThreads(),
|
||||||
@ -944,7 +954,7 @@ private:
|
|||||||
return std::make_shared<BroadcastPartTaskImpl>(task);
|
return std::make_shared<BroadcastPartTaskImpl>(task);
|
||||||
},
|
},
|
||||||
.outgoingAudioBitrateKbit = outgoingAudioBitrateKbit,
|
.outgoingAudioBitrateKbit = outgoingAudioBitrateKbit,
|
||||||
.videoContentType = videoContentType == OngoingGroupCallVideoContentTypeGeneric ? tgcalls::VideoContentType::Generic : tgcalls::VideoContentType::Screencast,
|
.videoContentType = _videoContentType,
|
||||||
.initialEnableNoiseSuppression = enableNoiseSuppression
|
.initialEnableNoiseSuppression = enableNoiseSuppression
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user