ECPlayerView Class Reference

Inherits from UIView
Conforms to RTCEAGLVideoViewDelegate
Declared in ECPlayerView.h
ECPlayerView.m

Initializers

– initWithLiveStream:

Create a Player View with a given stream that is being consumed.

- (instancetype)initWithLiveStream:(ECStream *)liveStream

Parameters

liveStream

The stream that is being consumed by the client.

For example you can initialize a player right after ECRoomDelegate has fired ECRoomDelegate:didSubscribeStream passing the ECStream object to this initializer.

Return Value

instancetype

See Also

Declared In

ECPlayerView.h

– initWithLiveStream:frame:

Create a Player View with the given stream that is being consumed in a custom frame.

- (instancetype)initWithLiveStream:(ECStream *)liveStream frame:(CGRect)frame

Parameters

liveStream

The stream that is being consumed by the client.

frame

Custom frame where this control should be rendered.

Return Value

instancetype

See Also

Declared In

ECPlayerView.h

– removeRenderer

Remove the current assigned rendered for this player

- (void)removeRenderer

Declared In

ECPlayerView.h

Properties

  stream

Stream object that contains a media stream

@property (weak, nonatomic, readonly) ECStream *stream

Declared In

ECPlayerView.h

  videoView

View where the video gets rendered

@property (strong, nonatomic, readonly) RTCEAGLVideoView *videoView

Declared In

ECPlayerView.h