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>.
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.
◆ attachStream:
- (void) attachStream: |
|
(R5Stream *) |
videoStream |
|
Set a stream to render using this View
- Parameters
-
videoStream | Stream to render |
◆ resetContext
**
Reset the GLES context and setup rendering loop
◆ setFrame:
- (void) setFrame: |
|
(CGRect) |
frame |
|
Set the view render frame
- Parameters
-
◆ showDebugInfo:
- (void) showDebugInfo: |
|
(BOOL) |
debug |
|
Overlay the view with a log of textual debugging information.
- Parameters
-
debug | Set 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
-
visible | Set the visibility |
◆ preferredFPS
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
-
renderer | R5VideoViewRenderer |
◆ scaleMode
Scaling mode of the rendering view for subscribing streams
The documentation for this class was generated from the following file:
- /Users/ankitashankhdhar/Documents/Red5/Git/infrared5/red5pro-core-streaming-library/red5streaming/src/R5VideoViewController.h