iOS SDK API Reference

SKWMediaStream.h
Go to the documentation of this file.
1 // SKWMediaStream.h
3 // SkyWay SDK
5 #import <Foundation/Foundation.h>
6 #import "SKWMediaConstraints.h"
7 #import "SKWCommon.h"
8 
13 @class SKWVideo;
14 
18 @interface SKWMediaStream : NSObject < NSCopying >
19 
23 @property(nonatomic, readonly) NSString* __nullable label;
24 
28 @property(nonatomic, readonly) NSString* __nullable peerId;
29 
33 - (void)close;
34 
48 - (NSUInteger)getVideoTracks;
49 
71 - (void)setEnableVideoTrack:(NSUInteger)pos enable:(BOOL)enable;
72 
95 - (BOOL)getEnableVideoTrack:(NSUInteger)pos;
96 
110 - (NSUInteger)getAudioTracks;
111 
133 - (void)setEnableAudioTrack:(NSUInteger)pos enable:(BOOL)enable;
134 
157 - (BOOL)getEnableAudioTrack:(NSUInteger)pos;
158 
181 - (BOOL)setCameraPosition:(SKWCameraPositionEnum)pos;
182 
208 
227 - (BOOL)switchCamera;
228 
248 - (void)addVideoRenderer:(SKWVideo* __nonnull)renderer track:(NSUInteger)trackNo;
249 
269 - (void)removeVideoRenderer:(SKWVideo* __nonnull)renderer track:(NSUInteger)trackNo;
270 
271 @end
SKWMediaStream::peerId
NSString *__nullable peerId
remote media stream peer id
Definition: SKWMediaStream.h:28
SKWMediaStream
Media stream.
Definition: SKWMediaStream.h:18
SKWMediaConstraints.h
SKWVideo
Video view.
Definition: SKWVideo.h:47
-[SKWMediaStream switchCamera]
BOOL switchCamera()
Switch camera.
SKWMediaStream::label
NSString *__nullable label
media stream label
Definition: SKWMediaStream.h:23
-[SKWMediaStream close]
void close()
Close all tracks.
-[SKWMediaStream getCameraPosition]
SKWCameraPositionEnum getCameraPosition()
Get camera position.
-[SKWMediaStream getAudioTracks]
NSUInteger getAudioTracks()
Get audio track count.
-[SKWMediaStream getVideoTracks]
NSUInteger getVideoTracks()
Get video track count.
SKWCameraPositionEnum
SKWCameraPositionEnum
Device camera position.
Definition: SKWMediaConstraints.h:15