![]() |
Intel® Collaboration Suite for WebRTC
version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for iOS*
|
This class represent a local stream. More...
#import <OWTLocalStream.h>
Instance Methods | |
(instancetype) | - initWithMediaStream:source: |
(instancetype) | - initWithConstratins:error: |
(void) | - setAttributes: |
Set a user-defined attribute map. More... | |
![]() | |
(instancetype) | - init |
(void) | - attach: |
Attach the stream's first video track to a renderer. More... | |
(NSDictionary< NSString *, NSString * > *) | - attributes |
Returns a user-defined attribute dictionary. More... | |
Additional Inherited Members | |
![]() | |
RTCMediaStream * | mediaStream |
OWTStreamSourceInfo * | source |
This class represent a local stream.
- (instancetype) initWithConstratins: | (OWTStreamConstraints *) | constraints | |
error: | (NSError **) | outError | |
Create an OWTLocalStream from mic and camera with given constraints.
constraints | Constraints for creating the stream. The stream will not be impacted if changing constraints after it is created. |
- (instancetype) initWithMediaStream: | (RTCMediaStream *) | mediaStream | |
source: | (OWTStreamSourceInfo *) | source | |
Create an OWTLocalStream from given RTCMediaStream.
source | Information about stream's source. |
Please create RTCMediaStream, RTCMediaStreamTrack by the RTCPeerConnectionFactory returned by [RTCPeerConnectionFactory sharedInstance]. This method is defined in RTCPeerConnectionFactory+OWT.h.
- (void) setAttributes: | (NSDictionary< NSString *, NSString * > *) | attributes |
Set a user-defined attribute map.
Remote user can get attribute map by calling setAttributes:. P2P mode does not support setting attributes.