Media stream.
More...
#import <SKWMediaStream.h>
|
NSString *__nullable | label |
| media stream label
|
|
NSString *__nullable | peerId |
| remote media stream peer id
|
|
◆ addVideoRenderer:track:
- (void) addVideoRenderer: |
|
(SKWVideo *__nonnull) |
renderer |
track: |
|
(NSUInteger) |
trackNo |
|
|
| |
- Parameters
-
renderer | Video Renderer |
trackNo | Track number. (0-) |
◆ getAudioTracks
- (NSUInteger) getAudioTracks |
|
|
|
Get audio track count.
- Returns
- Count of audio track.
◆ getCameraPosition
Get camera position.
switch (pos) {
break;
break;
break;
}
- Returns
- Current camera position.
◆ getEnableAudioTrack:
- (BOOL) getEnableAudioTrack: |
|
(NSUInteger) |
pos |
|
Get audio track enabling state.
- Parameters
-
- Returns
- Enabling state.
◆ getEnableVideoTrack:
- (BOOL) getEnableVideoTrack: |
|
(NSUInteger) |
pos |
|
Get video track enabling state.
- Parameters
-
- Returns
- Enabling state.
◆ getVideoTracks
- (NSUInteger) getVideoTracks |
|
|
|
Get video track count.
- Returns
- Count of video track.
◆ removeVideoRenderer:track:
- (void) removeVideoRenderer: |
|
(SKWVideo *__nonnull) |
renderer |
track: |
|
(NSUInteger) |
trackNo |
|
|
| |
- Parameters
-
renderer | |
trackNo | Track number. (0-) |
◆ setCameraPosition:
Set camera position.
- Parameters
-
- Returns
- Method result.
◆ setEnableAudioTrack:enable:
- (void) setEnableAudioTrack: |
|
(NSUInteger) |
pos |
enable: |
|
(BOOL) |
enable |
|
|
| |
Set audio track enabling state.
- Parameters
-
pos | Track number. |
enable | Enabling state. |
◆ setEnableVideoTrack:enable:
- (void) setEnableVideoTrack: |
|
(NSUInteger) |
pos |
enable: |
|
(BOOL) |
enable |
|
|
| |
Set video track enabling state.
- Parameters
-
pos | Track number. |
enable | Enabling state. |
◆ switchCamera
Switch camera.
- Returns
- Method result.