SINVideoController Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SINVideoController.h |
captureDevicePosition
required method
Indicates the capture device position (front-facing or back-facing camera) currently in use. This property may be set to to change which capture device should be used.
@property (nonatomic, assign, readwrite) AVCaptureDevicePosition captureDevicePosition
Declared In
SINVideoController.h
disableIdleTimerOnCapturing
required method
Automatically set/unset UIApplication.idleTimerDisabled when video capturing is started / stopped. Default is YES.
@property (nonatomic, assign, readwrite) BOOL disableIdleTimerOnCapturing
Declared In
SINVideoController.h
– remoteView
required method
View into which the remote peer video stream is rendered.
- (UIView *)remoteView
Discussion
Use [UIView contentMode] to control how the video frame is rendered. (Note that only UIViewContentModeScaleAspectFit and UIViewContentModeScaleAspectFill will be respected)
Use [UIView backgroundColor] to specify color for potential “empty” regions when UIViewContentModeScaleAspectFit is used.
Declared In
SINVideoController.h
– localView
required method
View into which the locally captured video stream is rendered.
- (UIView *)localView
Discussion
Use [UIView contentMode] to control how the video frame is rendered. (Note that only UIViewContentModeScaleAspectFit and UIViewContentModeScaleAspectFill will be respected)
Use [UIView backgroundColor] to specify color for potential “empty” regions when UIViewContentModeScaleAspectFit is used.
Declared In
SINVideoController.h
– setRemoteVideoFrameCallback:
required method
Set a callback for listening to video frames from a remote stream.
- (void)setRemoteVideoFrameCallback:(id<SINRemoteVideoFrameCallback>)callback
Parameters
callback |
The callback object that will receive frames. |
---|
See Also
Declared In
SINVideoController.h
– setLocalVideoFrameCallback:
required method
Set a callback for listening to video frames captured from the local camera.
- (void)setLocalVideoFrameCallback:(id<SINLocalVideoFrameCallback>)callback
Parameters
callback |
The callback object that will receive frames. |
---|
See Also
Declared In
SINVideoController.h