Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for iOS*
OWTP2PPublication.h
1 // Copyright (C) <2018> Intel Corporation
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 #import <Foundation/Foundation.h>
5 #import <WebRTC/RTCMacros.h>
6 NS_ASSUME_NONNULL_BEGIN
7 @class OWTP2PPublication;
8 RTC_OBJC_EXPORT
9 @protocol OWTP2PPublicationDelegate<NSObject>
10 @optional
12 - (void)publicationDidEnd:(OWTP2PPublication*)publication;
13 @end
18 RTC_OBJC_EXPORT
19 @interface OWTP2PPublication : NSObject
20 - (instancetype)init NS_UNAVAILABLE;
22 - (void)stop;
24 - (void)stats:(void (^)(NSArray<RTCLegacyStatsReport*>* stats))onSuccess
25  onFailure:(nullable void (^)(NSError*))onFailure;
26 @property(nonatomic, weak) id<OWTP2PPublicationDelegate> delegate;
27 @end
28 NS_ASSUME_NONNULL_END
Publication represents a sender for publishing a stream.
Definition: OWTP2PPublication.h:19
void stop()
Stop certain publication. Once a subscription is stopped, it cannot be recovered. ...
Definition: OWTP2PPublication.h:9