Red5Pro IOS Client SDK

 10.0.0
Core SDK for IOS
R5VideoViewController Class Reference

The VideoView for all R5Streaming. When publishing, it will contain the camera view. While subscribing it will render all incoming stream data. Streams will be cropped to fit the aspect ratio of the view. More...

#import <R5VideoViewController.h>

Inherits UIViewController, <GLKViewDelegate>, and <R5VideoViewRendererDelegate>.

Instance Methods

(void) - attachStream:
 
(void) - resetContext
 ‍** More...
 
(void) - showPreview:
 
(void) - showDebugInfo:
 
(void) - setFrame:
 
(void) - pauseRender
 
(void) - resumeRender
 

Properties

int preferredFPS
 
r5_scale_mode scaleMode
 
R5VideoViewRenderer * renderer
 

Detailed Description

The VideoView for all R5Streaming. When publishing, it will contain the camera view. While subscribing it will render all incoming stream data. Streams will be cropped to fit the aspect ratio of the view.

Method Documentation

◆ attachStream:

- (void) attachStream: (R5Stream *)  videoStream

Set a stream to render using this View

Parameters
videoStreamStream to render

◆ resetContext

- (void) resetContext

‍**

Reset the GLES context and setup rendering loop

◆ setFrame:

- (void) setFrame: (CGRect)  frame

Set the view render frame

Parameters
frameSet the frame

◆ showDebugInfo:

- (void) showDebugInfo: (BOOL)  debug

Overlay the view with a log of textual debugging information.

Parameters
debugSet the visibility of the debug panel

◆ showPreview:

- (void) showPreview: (BOOL)  visible

Show the publish camera preview. You can use this to show the preview before the Stream is publishing.

Parameters
visibleSet the visibility

Property Documentation

◆ preferredFPS

- (int) preferredFPS
readwriteatomic

Desired FPS to render the video at. FPS lower than the streaming FPS will result in dropped frames.

◆ renderer

- (R5VideoViewRenderer*) renderer
readwritenonatomicstrong

Set a custom renderer for the stream view

Parameters
rendererR5VideoViewRenderer

◆ scaleMode

- (r5_scale_mode) scaleMode
readwritenonatomicassign

Scaling mode of the rendering view for subscribing streams


The documentation for this class was generated from the following file: