Add ability to mark video sources for screen casting in ObjC
Bug: webrtc:13033 Change-Id: If30a4889cd2cb0ecc5ee91eed2ee9b496a40c852 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227295 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34818}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
723ceae567
commit
4d0760e7f9
@ -51,8 +51,18 @@ static webrtc::ObjCVideoTrackSource *getObjCVideoSource(
|
||||
- (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory
|
||||
signalingThread:(rtc::Thread *)signalingThread
|
||||
workerThread:(rtc::Thread *)workerThread {
|
||||
return [self initWithFactory:factory
|
||||
signalingThread:signalingThread
|
||||
workerThread:workerThread
|
||||
isScreenCast:NO];
|
||||
}
|
||||
|
||||
- (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory
|
||||
signalingThread:(rtc::Thread *)signalingThread
|
||||
workerThread:(rtc::Thread *)workerThread
|
||||
isScreenCast:(BOOL)isScreenCast {
|
||||
rtc::scoped_refptr<webrtc::ObjCVideoTrackSource> objCVideoTrackSource(
|
||||
new rtc::RefCountedObject<webrtc::ObjCVideoTrackSource>());
|
||||
new rtc::RefCountedObject<webrtc::ObjCVideoTrackSource>(isScreenCast));
|
||||
|
||||
return [self initWithFactory:factory
|
||||
nativeVideoSource:webrtc::VideoTrackSourceProxy::Create(
|
||||
|
||||
Reference in New Issue
Block a user