Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for iOS*
OWTLocalStream Class Reference

This class represent a local stream. More...

#import <OWTLocalStream.h>

Inheritance diagram for OWTLocalStream:
Collaboration diagram for OWTLocalStream:

Instance Methods

(instancetype) - initWithMediaStream:source:
 
(instancetype) - initWithConstratins:error:
 
(void) - setAttributes:
 Set a user-defined attribute map. More...
 
- Instance Methods inherited from OWTStream
(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

- Properties inherited from OWTStream
RTCMediaStream * mediaStream
 
OWTStreamSourceInfosource
 

Detailed Description

This class represent a local stream.

Method Documentation

◆ initWithConstratins:error:()

- (instancetype) initWithConstratins: (OWTStreamConstraints *)  constraints
error: (NSError **)  outError 

Create an OWTLocalStream from mic and camera with given constraints.

Parameters
constraintsConstraints for creating the stream. The stream will not be impacted if changing constraints after it is created.
Returns
On success, an OWTLocalStream object. If nil, the outError parameter contains an NSError instance describing the problem.

◆ initWithMediaStream:source:()

- (instancetype) initWithMediaStream: (RTCMediaStream *)  mediaStream
source: (OWTStreamSourceInfo *)  source 

Create an OWTLocalStream from given RTCMediaStream.

Parameters
sourceInformation about stream's source.

Please create RTCMediaStream, RTCMediaStreamTrack by the RTCPeerConnectionFactory returned by [RTCPeerConnectionFactory sharedInstance]. This method is defined in RTCPeerConnectionFactory+OWT.h.

◆ setAttributes:()

- (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.