Red5Pro IOS Client SDK

 7.3.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
 
(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

- (void) attachStream: (R5Stream *)  videoStream

Set a stream to render using this View

Parameters
videoStreamStream to render
- (void) resetContext

Renderer hook invoked by R5VideoViewController to update the rendering display.

Parameters
viewThe underlying GLKView Reset the GLES context and setup rendering loop
- (void) setFrame: (CGRect)  frame

Set the view render frame

Parameters
frameSet the frame
- (void) showDebugInfo: (BOOL)  debug

Overlay the view with a log of textual debugging information.

Parameters
debugSet the visibility of the debug panel
- (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

- (int) preferredFPS
readwriteatomic

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

- (R5VideoViewRenderer*) renderer
readwritenonatomicstrong

Set a custom renderer for the stream view

Parameters
rendererR5VideoViewRenderer
- (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: