2016-01-07 09:29:29 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-08-30 09:30:29 +02:00
|
|
|
#import "RTCMediaConstraints.h"
|
2016-01-07 09:29:29 -08:00
|
|
|
|
2016-05-01 14:53:46 -07:00
|
|
|
#include <memory>
|
|
|
|
|
|
2019-02-13 08:52:27 +01:00
|
|
|
#include "sdk/media_constraints.h"
|
2016-01-07 09:29:29 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
2020-05-04 16:14:32 +02:00
|
|
|
@interface RTC_OBJC_TYPE (RTCMediaConstraints)
|
|
|
|
|
()
|
|
|
|
|
|
|
|
|
|
/**
|
2025-01-08 05:45:56 -08:00
|
|
|
* A MediaConstraints representation of this RTCMediaConstraints object.
|
|
|
|
|
* This is needed to pass to the underlying C++ APIs.
|
2020-05-04 16:14:32 +02:00
|
|
|
*/
|
|
|
|
|
- (std::unique_ptr<webrtc::MediaConstraints>)nativeConstraints;
|
2016-01-07 09:29:29 -08:00
|
|
|
|
|
|
|
|
/** Return a native Constraints object representing these constraints */
|
2019-02-13 08:52:27 +01:00
|
|
|
+ (webrtc::MediaConstraints::Constraints)nativeConstraintsForConstraints:
|
|
|
|
|
(NSDictionary<NSString*, NSString*>*)constraints;
|
2016-01-07 09:29:29 -08:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|