2016-01-06 12:05:22 -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.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#import "WebRTC/RTCSessionDescription.h"
|
2016-01-06 12:05:22 -08:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "api/jsep.h"
|
2016-01-06 12:05:22 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface RTCSessionDescription ()
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The native SessionDescriptionInterface representation of this
|
|
|
|
|
* RTCSessionDescription object. This is needed to pass to the underlying C++
|
|
|
|
|
* APIs.
|
|
|
|
|
*/
|
2018-01-12 16:16:18 +01:00
|
|
|
@property(nonatomic, readonly, nullable) webrtc::SessionDescriptionInterface *nativeDescription;
|
2016-01-06 12:05:22 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initialize an RTCSessionDescription from a native
|
|
|
|
|
* SessionDescriptionInterface. No ownership is taken of the native session
|
|
|
|
|
* description.
|
|
|
|
|
*/
|
|
|
|
|
- (instancetype)initWithNativeDescription:
|
2016-02-11 16:19:06 -08:00
|
|
|
(const webrtc::SessionDescriptionInterface *)nativeDescription;
|
2016-01-06 12:05:22 -08:00
|
|
|
|
2016-03-04 07:09:09 -08:00
|
|
|
+ (std::string)stdStringForType:(RTCSdpType)type;
|
2016-01-06 12:05:22 -08:00
|
|
|
|
2016-03-04 07:09:09 -08:00
|
|
|
+ (RTCSdpType)typeForStdString:(const std::string &)string;
|
2016-01-06 12:05:22 -08:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|