Skip to content

Commit 75db58d

Browse files
committed
update WebRTC framework to 93.0.4577.82
1 parent bf1521a commit 75db58d

File tree

88 files changed

+4198
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+4198
-0
lines changed

WebRTC.framework/WebRTC

-1
This file was deleted.

WebRTC.framework/WebRTC

21.1 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Headers
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Modules
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2016 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
#import <WebRTC/RTCMacros.h>
14+
#import <WebRTC/RTCMediaSource.h>
15+
16+
NS_ASSUME_NONNULL_BEGIN
17+
18+
RTC_OBJC_EXPORT
19+
@interface RTC_OBJC_TYPE (RTCAudioSource) : RTC_OBJC_TYPE(RTCMediaSource)
20+
21+
- (instancetype)init NS_UNAVAILABLE;
22+
23+
// Sets the volume for the RTCMediaSource. |volume| is a gain value in the range
24+
// [0, 10].
25+
// Temporary fix to be able to modify volume of remote audio tracks.
26+
// TODO(kthelgason): Property stays here temporarily until a proper volume-api
27+
// is available on the surface exposed by webrtc.
28+
@property(nonatomic, assign) double volume;
29+
30+
@end
31+
32+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <WebRTC/RTCMacros.h>
12+
#import <WebRTC/RTCMediaStreamTrack.h>
13+
14+
NS_ASSUME_NONNULL_BEGIN
15+
16+
@class RTC_OBJC_TYPE(RTCAudioSource);
17+
18+
RTC_OBJC_EXPORT
19+
@interface RTC_OBJC_TYPE (RTCAudioTrack) : RTC_OBJC_TYPE(RTCMediaStreamTrack)
20+
21+
- (instancetype)init NS_UNAVAILABLE;
22+
23+
/** The audio source for this audio track. */
24+
@property(nonatomic, readonly) RTC_OBJC_TYPE(RTCAudioSource) * source;
25+
26+
@end
27+
28+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <AVFoundation/AVFoundation.h>
12+
13+
#import <WebRTC/RTCMacros.h>
14+
#import <WebRTC/RTCVideoFrameBuffer.h>
15+
16+
NS_ASSUME_NONNULL_BEGIN
17+
18+
/** RTCVideoFrameBuffer containing a CVPixelBufferRef */
19+
RTC_OBJC_EXPORT
20+
@interface RTC_OBJC_TYPE (RTCCVPixelBuffer) : NSObject <RTC_OBJC_TYPE(RTCVideoFrameBuffer)>
21+
22+
@property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;
23+
@property(nonatomic, readonly) int cropX;
24+
@property(nonatomic, readonly) int cropY;
25+
@property(nonatomic, readonly) int cropWidth;
26+
@property(nonatomic, readonly) int cropHeight;
27+
28+
+ (NSSet<NSNumber *> *)supportedPixelFormats;
29+
30+
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer;
31+
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
32+
adaptedWidth:(int)adaptedWidth
33+
adaptedHeight:(int)adaptedHeight
34+
cropWidth:(int)cropWidth
35+
cropHeight:(int)cropHeight
36+
cropX:(int)cropX
37+
cropY:(int)cropY;
38+
39+
- (BOOL)requiresCropping;
40+
- (BOOL)requiresScalingToWidth:(int)width height:(int)height;
41+
- (int)bufferSizeForCroppingAndScalingToWidth:(int)width height:(int)height;
42+
43+
/** The minimum size of the |tmpBuffer| must be the number of bytes returned from the
44+
* bufferSizeForCroppingAndScalingToWidth:height: method.
45+
* If that size is 0, the |tmpBuffer| may be nil.
46+
*/
47+
- (BOOL)cropAndScaleTo:(CVPixelBufferRef)outputPixelBuffer
48+
withTempBuffer:(nullable uint8_t *)tmpBuffer;
49+
50+
@end
51+
52+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
#import <WebRTC/RTCLogging.h>
14+
#import <WebRTC/RTCMacros.h>
15+
16+
NS_ASSUME_NONNULL_BEGIN
17+
18+
typedef void (^RTCCallbackLoggerMessageHandler)(NSString *message);
19+
typedef void (^RTCCallbackLoggerMessageAndSeverityHandler)(NSString *message,
20+
RTCLoggingSeverity severity);
21+
22+
// This class intercepts WebRTC logs and forwards them to a registered block.
23+
// This class is not threadsafe.
24+
RTC_OBJC_EXPORT
25+
@interface RTC_OBJC_TYPE (RTCCallbackLogger) : NSObject
26+
27+
// The severity level to capture. The default is kRTCLoggingSeverityInfo.
28+
@property(nonatomic, assign) RTCLoggingSeverity severity;
29+
30+
// The callback handler will be called on the same thread that does the
31+
// logging, so if the logging callback can be slow it may be a good idea
32+
// to implement dispatching to some other queue.
33+
- (void)start:(nullable RTCCallbackLoggerMessageHandler)handler;
34+
- (void)startWithMessageAndSeverityHandler:
35+
(nullable RTCCallbackLoggerMessageAndSeverityHandler)handler;
36+
37+
- (void)stop;
38+
39+
@end
40+
41+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <AVFoundation/AVFoundation.h>
12+
#import <Foundation/Foundation.h>
13+
14+
#import <WebRTC/RTCMacros.h>
15+
#import <WebRTC/RTCVideoCapturer.h>
16+
17+
NS_ASSUME_NONNULL_BEGIN
18+
19+
RTC_OBJC_EXPORT
20+
// Camera capture that implements RTCVideoCapturer. Delivers frames to a
21+
// RTCVideoCapturerDelegate (usually RTCVideoSource).
22+
NS_EXTENSION_UNAVAILABLE_IOS("Camera not available in app extensions.")
23+
@interface RTC_OBJC_TYPE (RTCCameraVideoCapturer) : RTC_OBJC_TYPE(RTCVideoCapturer)
24+
25+
// Capture session that is used for capturing. Valid from initialization to dealloc.
26+
@property(readonly, nonatomic) AVCaptureSession *captureSession;
27+
28+
// Returns list of available capture devices that support video capture.
29+
+ (NSArray<AVCaptureDevice *> *)captureDevices;
30+
// Returns list of formats that are supported by this class for this device.
31+
+ (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device;
32+
33+
// Returns the most efficient supported output pixel format for this capturer.
34+
- (FourCharCode)preferredOutputPixelFormat;
35+
36+
// Starts the capture session asynchronously and notifies callback on completion.
37+
// The device will capture video in the format given in the `format` parameter. If the pixel format
38+
// in `format` is supported by the WebRTC pipeline, the same pixel format will be used for the
39+
// output. Otherwise, the format returned by `preferredOutputPixelFormat` will be used.
40+
- (void)startCaptureWithDevice:(AVCaptureDevice *)device
41+
format:(AVCaptureDeviceFormat *)format
42+
fps:(NSInteger)fps
43+
completionHandler:(nullable void (^)(NSError *_Nullable))completionHandler;
44+
// Stops the capture session asynchronously and notifies callback on completion.
45+
- (void)stopCaptureWithCompletionHandler:(nullable void (^)(void))completionHandler;
46+
47+
// Starts the capture session asynchronously.
48+
- (void)startCaptureWithDevice:(AVCaptureDevice *)device
49+
format:(AVCaptureDeviceFormat *)format
50+
fps:(NSInteger)fps;
51+
// Stops the capture session asynchronously.
52+
- (void)stopCapture;
53+
54+
@end
55+
56+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
#import <WebRTC/RTCMacros.h>
14+
15+
NS_ASSUME_NONNULL_BEGIN
16+
17+
RTC_OBJC_EXPORT
18+
@interface RTC_OBJC_TYPE (RTCCertificate) : NSObject <NSCopying>
19+
20+
/** Private key in PEM. */
21+
@property(nonatomic, readonly, copy) NSString *private_key;
22+
23+
/** Public key in an x509 cert encoded in PEM. */
24+
@property(nonatomic, readonly, copy) NSString *certificate;
25+
26+
/**
27+
* Initialize an RTCCertificate with PEM strings for private_key and certificate.
28+
*/
29+
- (instancetype)initWithPrivateKey:(NSString *)private_key
30+
certificate:(NSString *)certificate NS_DESIGNATED_INITIALIZER;
31+
32+
- (instancetype)init NS_UNAVAILABLE;
33+
34+
/** Generate a new certificate for 're' use.
35+
*
36+
* Optional dictionary of parameters. Defaults to KeyType ECDSA if none are
37+
* provided.
38+
* - name: "ECDSA" or "RSASSA-PKCS1-v1_5"
39+
*/
40+
+ (nullable RTC_OBJC_TYPE(RTCCertificate) *)generateCertificateWithParams:(NSDictionary *)params;
41+
42+
@end
43+
44+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
#import <WebRTC/RTCMacros.h>
14+
15+
NS_ASSUME_NONNULL_BEGIN
16+
17+
/** Implement this protocol to pass codec specific info from the encoder.
18+
* Corresponds to webrtc::CodecSpecificInfo.
19+
*/
20+
RTC_OBJC_EXPORT
21+
@protocol RTC_OBJC_TYPE
22+
(RTCCodecSpecificInfo)<NSObject> @end
23+
24+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
#import <WebRTC/RTCCodecSpecificInfo.h>
14+
#import <WebRTC/RTCMacros.h>
15+
16+
/** Class for H264 specific config. */
17+
typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) {
18+
RTCH264PacketizationModeNonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed
19+
RTCH264PacketizationModeSingleNalUnit // Mode 0 - only single NALU allowed
20+
};
21+
22+
RTC_OBJC_EXPORT
23+
@interface RTC_OBJC_TYPE (RTCCodecSpecificInfoH264) : NSObject <RTC_OBJC_TYPE(RTCCodecSpecificInfo)>
24+
25+
@property(nonatomic, assign) RTCH264PacketizationMode packetizationMode;
26+
27+
@end

0 commit comments

Comments
 (0)