Suggestions

close search

StringeeRoomStream

@interface StringeeRoomStream : NSObject

Represents a media stream in a room. Ech participant can publish one or multiple media streams and subscribe to view other participants' streams.

userId

The identification of a participant who publishes the stream.

@property (strong, nonatomic, readonly) NSString *userId;
streamId

The identification of the stream, genertated by Stringee server.

@property (strong, nonatomic, readonly) NSString *streamId;
localVideoView

The view in which the local video renders to. For more information, see StringeeLocalVideoView

@property (strong, nonatomic, readonly) StringeeLocalVideoView *localVideoView;
remoteVideoView

The view in which the remote video renders to. For more information, see StringeeRemoteVideoView

@property (strong, nonatomic, readonly) StringeeRemoteVideoView *remoteVideoView;
- initLocalStreamWithConfig:

Initializes a stream with configurations.

- (instancetype)initLocalStreamWithConfig:(StringeeRoomStreamConfig *)config;
- switchCamera

Switches the device's camera.

- (void)switchCamera;
- mute:

Toggles audio on or off:
- mute = YES toggles audio off.
- mute = NO toggles audio on.

- (void)mute:(BOOL)mute;
- turnOnCammera:

Enables or disables the local video:
- isOn = YES enables video.
- isOn = NO disables video.

- (void)turnOnCammera:(BOOL)isOn;
- autoOrientationOfLocalVideoViewWithSize:withTransitionCoordinator:

Implements auto-orientation support.

- (void)autoOrientationOfLocalVideoViewWithSize:(CGSize)size withTransitionCoordinator:(id)coordinator;