FMLiveSwitchCameraSourceBase Class Reference

A base class for camera-based sources. More...

Instance Methods

(FMLiveSwitchFuture< id > *) - changeConfig:
 Changes the video configuration. More...
 
(FMLiveSwitchFuture< id > *) - changeFrameRate:
 Changes the video frame rate. More...
 
(FMLiveSwitchFuture< id > *) - changeResolutionWithSize:
 Changes the video resolution. More...
 
(FMLiveSwitchFuture< id > *) - changeResolutionWithWidth:height:
 Changes the video resolution. More...
 
(FMLiveSwitchVideoConfig *) - config
 Gets the current config. More...
 
(void) - doChangeConfigWithPromise:config:
 Performs the actual configuration change when the source is in the Started state. More...
 
(double) - frameRate
 Gets the current frame-rate, in fps. More...
 
(instancetype) - initWithOutputFormat:targetConfig:
 Initializes a new instance of the FMLiveSwitchScreenSourceBase class. More...
 
(double) - maxFrameRate
 Gets the maximum output frame-rate, in fps. More...
 
(double) - maxOutputFrameRate
 Gets the maximum allowed output frame-rate, in fps. More...
 
(FMLiveSwitchSize *) - maxOutputSize
 Gets the maximum allowed output size. More...
 
(FMLiveSwitchSize *) - maxSize
 Gets the maximum output size. More...
 
(double) - maxSupportedFrameRate
 Gets the maximum supported frame-rate, in fps. More...
 
(FMLiveSwitchSize *) - maxSupportedSize
 Gets the maximum supported size. More...
 
(double) - minFrameRate
 Gets the minimum frame-rate, in fps. More...
 
(double) - minOutputFrameRate
 Gets the minimum allowed output frame-rate, in fps. More...
 
(FMLiveSwitchSize *) - minOutputSize
 Gets the minimum allowed output size. More...
 
(FMLiveSwitchSize *) - minSize
 Gets the minimum size. More...
 
(double) - minSupportedFrameRate
 Gets the minimum supported frame-rate, in fps. More...
 
(FMLiveSwitchSize *) - minSupportedSize
 Gets the minimum supported size. More...
 
(void) - setConfig:
 Sets the current config. More...
 
(void) - setFrameRate:
 Sets the current frame-rate, in fps. More...
 
(void) - setMaxFrameRate:
 Sets the maximum output frame-rate, in fps. More...
 
(void) - setMaxOutputFrameRate:
 Sets the maximum allowed output frame-rate, in fps. More...
 
(void) - setMaxOutputSize:
 Sets the maximum allowed output size. More...
 
(void) - setMaxSize:
 Sets the maximum output size. More...
 
(void) - setMinFrameRate:
 Sets the minimum frame-rate, in fps. More...
 
(void) - setMinOutputFrameRate:
 Sets the minimum allowed output frame-rate, in fps. More...
 
(void) - setMinOutputSize:
 Sets the minimum allowed output size. More...
 
(void) - setMinSize:
 Sets the minimum size. More...
 
(void) - setSize:
 Sets the current size. More...
 
(void) - setStaticOutputFrameRate:
 Sets whether minOutputFrameRate and maxOutputFrameRate should return minSupportedFrameRate and maxSupportedFrameRate, respectively, or response to changes in minFrameRate and maxFrameRate. More...
 
(void) - setStaticOutputSize:
 Sets whether minOutputSize and maxOutputSize should return minSupportedSize and maxSupportedSize, respectively, or response to changes in minSize and maxSize. More...
 
(void) - setTargetConfig:
 Sets the target config. More...
 
(void) - setTargetFrameRate:
 Sets the target frame-rate, in fps. More...
 
(void) - setTargetOutputFrameRate:
 Sets the target output frame-rate, in fps. More...
 
(void) - setTargetOutputSize:
 Sets the target output size. More...
 
(void) - setTargetSize:
 Sets the target size. More...
 
(FMLiveSwitchSize *) - size
 Gets the current size. More...
 
(bool) - staticOutputFrameRate
 Gets whether minOutputFrameRate and maxOutputFrameRate should return minSupportedFrameRate and maxSupportedFrameRate, respectively, or response to changes in minFrameRate and maxFrameRate. More...
 
(bool) - staticOutputSize
 Gets whether minOutputSize and maxOutputSize should return minSupportedSize and maxSupportedSize, respectively, or response to changes in minSize and maxSize. More...
 
(FMLiveSwitchVideoConfig *) - targetConfig
 Gets the target config. More...
 
(double) - targetFrameRate
 Gets the target frame-rate, in fps. More...
 
(double) - targetOutputFrameRate
 Gets the target output frame-rate, in fps. More...
 
(FMLiveSwitchSize *) - targetOutputSize
 Gets the target output size. More...
 
(FMLiveSwitchSize *) - targetSize
 Gets the target size. More...
 
- Instance Methods inherited from FMLiveSwitchVideoSource
(void) - addOnRaiseSizeChange:
 Adds a handler that is raised when a frame is about to be raised with a size that does not match the prior frame. More...
 
(FMLiveSwitchSize *) - addOnRaiseSizeChangeWithBlock
 Adds a handler that is raised when a frame is about to be raised with a size that does not match the prior frame. More...
 
(void) - addOnRaiseSizeChangeWithBlock:
 Adds a handler that is raised when a frame is about to be raised with a size that does not match the prior frame. More...
 
(int) - averageFrameRate
 Gets the average frame rate. More...
 
(NSString *) - content
 Gets the content descriptor. More...
 
(FMLiveSwitchIVideoInputCollection *) - createInputCollectionWithOutput:
 Creates an input collection. More...
 
(long long) - frameCount
 Gets the frame count. More...
 
(double) - getFrameRateDistanceWithFrameRate1:frameRate2:
 Gets the distance between two frame rates. More...
 
(int) - getSizeDistanceWithWidth1:height1:width2:height2:
 Gets the distance between two sizes. More...
 
(instancetype) - initWithOutputFormat:
 Initializes a new instance of the FMLiveSwitchVideoSource class. More...
 
(FMLiveSwitchEncodingInfo *) - maxOutputEncoding
 Gets the maximum allowed output encoding. More...
 
(int) - maxOutputHeight
 Gets the maximum allowed output height. More...
 
(double) - maxOutputScale
 Gets the maximum allowed output scale. More...
 
(int) - maxOutputWidth
 Gets the maximum allowed output width. More...
 
(FMLiveSwitchEncodingInfo *) - minOutputEncoding
 Gets the minimum allowed output encoding. More...
 
(int) - minOutputHeight
 Gets the minimum allowed output height. More...
 
(double) - minOutputScale
 Gets the minimum allowed output scale. More...
 
(int) - minOutputWidth
 Gets the minimum allowed output width. More...
 
(bool) - outputCanProcessFrameWithOutput:
 Determines whether an output can process a frame from this pipe. More...
 
(bool) - overConstrainedFrameRate
 Gets whether the source frame-rate is over-constrained. More...
 
(bool) - overConstrainedHeight
 Gets whether the source height is over-constrained. More...
 
(bool) - overConstrainedOutput
 Gets whether the output is over-contrained. More...
 
(bool) - overConstrainedOutputFrameRate
 Gets whether the minimum allowed output frame-rate exceeds the maximum allowed output frame-rate. More...
 
(bool) - overConstrainedOutputHeight
 Gets whether the minimum allowed output height exceeds the maximum allowed output height. More...
 
(bool) - overConstrainedOutputScale
 Gets whether the minimum allowed output scale exceeds the maximum allowed output scale. More...
 
(bool) - overConstrainedOutputSize
 Gets whether the minimum allowed output size exceeds the maximum allowed output size. More...
 
(bool) - overConstrainedOutputWidth
 Gets whether the minimum allowed output width exceeds the maximum allowed output width. More...
 
(bool) - overConstrainedScale
 Gets whether the source scale is over-constrained. More...
 
(bool) - overConstrainedSize
 Gets whether the source size is over-constrained. More...
 
(bool) - overConstrainedWidth
 Gets whether the source width is over-constrained. More...
 
(void) - raiseFrame:
 Raises a frame. More...
 
(void) - removeOnRaiseSizeChange:
 Removes a handler that is raised when a frame is about to be raised with a size that does not match the prior frame. More...
 
(void) - setMaxOutputEncoding:
 Sets the maximum allowed output encoding. More...
 
(void) - setMaxOutputScale:
 Sets the maximum allowed output scale. More...
 
(void) - setMinOutputEncoding:
 Sets the minimum allowed output encoding. More...
 
(void) - setMinOutputScale:
 Sets the minimum allowed output scale. More...
 
(void) - setTargetOutputEncoding:
 Sets the target output encoding. More...
 
(void) - setTargetOutputScale:
 Sets the target output scale. More...
 
(void) - setVideoType:
 Sets the video type. More...
 
(FMLiveSwitchEncodingInfo *) - targetOutputEncoding
 Gets the target output encoding. More...
 
(int) - targetOutputHeight
 Gets the target output height. More...
 
(double) - targetOutputScale
 Gets the target output scale. More...
 
(int) - targetOutputWidth
 Gets the target output width. More...
 
(FMLiveSwitchVideoType) - videoType
 Gets the video type. More...
 
- Instance Methods inherited from FMLiveSwitchMediaSource
(void) - addOnDisabledChange:
 Adds a handler that is raised when the Disabled property changes state. More...
 
(void) - addOnDisabledChangeWithCaller:
 Adds a handler that is raised when the Disabled property changes state. More...
 
(id- addOnDisabledChangeWithCallerWithBlock
 Adds a handler that is raised when the Disabled property changes state. More...
 
(void) - addOnDisabledChangeWithCallerWithBlock:
 Adds a handler that is raised when the Disabled property changes state. More...
 
(void) - addOnMuted:
 Adds a handler that is raised when the source is muted. More...
 
(void) - addOnPausedChange:
 Adds a handler that is raised when the Paused property changes state. More...
 
(void) - addOnProcessControlFrames:
 Adds a handler that is raised when control frames are processed. More...
 
(NSMutableArray *) - addOnProcessControlFramesWithBlock
 Adds a handler that is raised when control frames are processed. More...
 
(void) - addOnProcessControlFramesWithBlock:
 Adds a handler that is raised when control frames are processed. More...
 
(void) - addOnProcessedControlFrames:
 Adds a handler that is raised when control frames have been processed. More...
 
(NSMutableArray *) - addOnProcessedControlFramesWithBlock
 Adds a handler that is raised when control frames have been processed. More...
 
(void) - addOnProcessedControlFramesWithBlock:
 Adds a handler that is raised when control frames have been processed. More...
 
(void) - addOnRaiseControlFrameResponses:
 Adds a handler that is raised when control frame responses are raised. More...
 
(NSMutableArray *) - addOnRaiseControlFrameResponsesWithBlock
 Adds a handler that is raised when control frame responses are raised. More...
 
(void) - addOnRaiseControlFrameResponsesWithBlock:
 Adds a handler that is raised when control frame responses are raised. More...
 
(void) - addOnRaisedControlFrameResponses:
 Adds a handler that is raised when control frame responses have been raised. More...
 
(NSMutableArray *) - addOnRaisedControlFrameResponsesWithBlock
 Adds a handler that is raised when control frame responses have been raised. More...
 
(void) - addOnRaisedControlFrameResponsesWithBlock:
 Adds a handler that is raised when control frame responses have been raised. More...
 
(void) - addOnRaisedFrame:
 Adds a handler that is raised when a frame has been raised. More...
 
(TFrame) - addOnRaisedFrameWithBlock
 Adds a handler that is raised when a frame has been raised. More...
 
(void) - addOnRaisedFrameWithBlock:
 Adds a handler that is raised when a frame has been raised. More...
 
(void) - addOnRaiseFrame:
 Adds a handler that is raised when a frame is being raised. More...
 
(TFrame) - addOnRaiseFrameWithBlock
 Adds a handler that is raised when a frame is being raised. More...
 
(void) - addOnRaiseFrameWithBlock:
 Adds a handler that is raised when a frame is being raised. More...
 
(void) - addOnStateChange:
 Adds a handler that is raised when the state changes. More...
 
(TSource) - addOnStateChangeWithBlock
 Adds a handler that is raised when the state changes. More...
 
(void) - addOnStateChangeWithBlock:
 Adds a handler that is raised when the state changes. More...
 
(void) - addOnUnmuted:
 Adds a handler that is raised when the source is unmuted. More...
 
(void) - addOutput:
 Adds an output. More...
 
(void) - addOutputs:
 Adds some outputs. More...
 
(bool) - allowDiagnosticTimer
 Gets whether this media pipe is allowed to be timed. More...
 
(bool) - allowOutputRateTimer
 Gets whether this media pipe output rate is allowed to be timed. More...
 
(bool) - canChangeBitrate
 Gets whether this source can change the output bitrate. More...
 
(bool) - canPauseBitrate
 Gets whether this source can pause the output bitrate. More...
 
(FMLiveSwitchFuture< id > *) - changeInput:
 Changes the current input. More...
 
(TIInputCollection) - createInputCollectionWithOutput:
 Creates an input collection. More...
 
(bool) - deactivated
 Gets a value indicating whether this source is deactivated. More...
 
(bool) - deactivatedByApplication
 Gets whether this source is deactivated because the application has requested it. More...
 
(bool) - deactivatedByServer
 Gets whether this source is deactivated because the server has requested it. More...
 
(NSString *) - description
 Returns a string that represents this instance. More...
 
(bool) - destroy
 Destroys this instance. More...
 
(bool) - disabled
 Gets a value indicating whether this source is disabled. More...
 
(void) - doDestroy
 Destroys this instance. More...
 
(void) - doProcessControlFrames:
 Processes control frames. More...
 
(FMLiveSwitchError *) - doProcessSdpMediaDescription:isOffer:isLocalDescription:
 Processes a local SDP media description. More...
 
(void) - doProcessSourceStatsFromOutputWithSourceStats:
 Processes source stats from an output. More...
 
(void) - doProcessTrackStatsFromOutputWithTrackStats:
 Processes track stats from an output. More...
 
(FMLiveSwitchFuture< id > *) - doStart
 Starts this instance. More...
 
(FMLiveSwitchFuture< id > *) - doStop
 Stops this instance. More...
 
(int) - getCcmSequenceNumber
 Gets the CCM sequence number. More...
 
(FMLiveSwitchFuture< NSMutableArray * > *) - getInputs
 Gets the available inputs. More...
 
(long long) - getPipelineSystemDelayWithOutputFormat:
 Gets the total pipeline system delay in ticks for a given output format. More...
 
(bool) - hasOutput:
 Determines whether this source has the specified output. More...
 
(void) - incrementCcmSequenceNumber
 Increments the CCM sequence number. More...
 
(instancetype) - initWithOutputFormat:
 Initializes a new instance of the FMLiveSwitchMediaSource`8 class. More...
 
(FMLiveSwitchSourceInput *) - input
 Gets the current input. More...
 
(bool) - isDestroyed
 Gets whether the current state is Destroyed. More...
 
(bool) - isStarted
 Gets whether the current state is Started. More...
 
(bool) - isStopped
 Gets whether the current state is Stopped. More...
 
(NSString *) - label
 Gets a label that identifies this class. More...
 
(int) - maxOutputBitrate
 Gets the maximum allowed output bitrate, in kbps. More...
 
(int) - minOutputBitrate
 Gets the minimum allowed output bitrate, in kbps. More...
 
(bool) - muted
 Gets whether output is muted. More...
 
(TIInput) - output
 Gets the output. More...
 
(void) - outputAddedWithOutput:
 Called when an output is added. More...
 
(bool) - outputCanProcessFrameWithOutput:
 Determines whether an output can process a frame from this pipe. More...
 
(bool) - outputDeactivated
 Gets whether output is deactivated. More...
 
(TFormat) - outputFormat
 Gets the output format. More...
 
(bool) - outputMuted
 Gets whether output is muted. More...
 
(void) - outputRemovedWithOutput:
 Called when an output is removed. More...
 
(NSString *) - outputRtpStreamId
 Gets the output RTP stream identifier. More...
 
(NSMutableArray *) - outputs
 Gets the outputs. More...
 
(bool) - outputSynchronizable
 Gets whether output is synchronizable. More...
 
(long long) - outputSynchronizationSource
 Gets the output synchronization source. More...
 
(bool) - overConstrained
 Gets whether this source is over-constrained. More...
 
(bool) - overConstrainedBitrate
 Gets whether the source bitrate is over-constrained. More...
 
(bool) - overConstrainedOutputBitrate
 Gets whether the minimum allowed output bitrate exceeds the maximum allowed output bitrate. More...
 
(bool) - paused
 Gets a value indicating whether this source is paused. More...
 
(bool) - persistent
 Gets a value indicating whether this instance is persistent. More...
 
(NSString *) - pipelineJson
 Gets the pipeline JSON with this as the central point. More...
 
(NSString *) - pipelineJsonFromOutput
 Gets the pipeline JSON from an output. More...
 
(void) - processControlFrame:
 Processes a control frame. More...
 
(void) - processControlFrames:
 Processes control frames. More...
 
(FMLiveSwitchError *) - processSdpMediaDescriptionFromOutputWithMediaDescription:isOffer:isLocalDescription:
 Processes a local SDP media description from an output. More...
 
(void) - processSourceStatsFromOutputWithSourceStats:
 Processes source stats from an output. More...
 
(void) - processTrackStatsFromOutputWithTrackStats:
 Processes track stats from an output. More...
 
(void) - raiseControlFrameResponse:
 Raises a control frame response. More...
 
(void) - raiseControlFrameResponse:outputs:
 Raises a control frame response. More...
 
(void) - raiseControlFrameResponses:
 Raises control frame responses. More...
 
(void) - raiseControlFrameResponses:outputs:
 Raises control frame responses. More...
 
(void) - raiseDisabledChange
 Raises the OnDisabledChange event. More...
 
(void) - raiseFrame:
 Raises a frame. More...
 
(void) - removeOnDisabledChange:
 Removes a handler that is raised when the Disabled property changes state. More...
 
(void) - removeOnDisabledChangeWithCaller:
 Removes a handler that is raised when the Disabled property changes state. More...
 
(void) - removeOnMuted:
 Removes a handler that is raised when the source is muted. More...
 
(void) - removeOnPausedChange:
 Removes a handler that is raised when the Paused property changes state. More...
 
(void) - removeOnProcessControlFrames:
 Removes a handler that is raised when control frames are processed. More...
 
(void) - removeOnProcessedControlFrames:
 Removes a handler that is raised when control frames have been processed. More...
 
(void) - removeOnRaiseControlFrameResponses:
 Removes a handler that is raised when control frame responses are raised. More...
 
(void) - removeOnRaisedControlFrameResponses:
 Removes a handler that is raised when control frame responses have been raised. More...
 
(void) - removeOnRaisedFrame:
 Removes a handler that is raised when a frame has been raised. More...
 
(void) - removeOnRaiseFrame:
 Removes a handler that is raised when a frame is being raised. More...
 
(void) - removeOnStateChange:
 Removes a handler that is raised when the state changes. More...
 
(void) - removeOnUnmuted:
 Removes a handler that is raised when the source is unmuted. More...
 
(bool) - removeOutput:
 Removes an output. More...
 
(void) - removeOutputs
 Removes all outputs. More...
 
(void) - removeOutputs:
 Removes some outputs. More...
 
(void) - setDeactivated:
 Sets a value indicating whether this source is deactivated. More...
 
(void) - setInput:
 Sets the current input. More...
 
(void) - setMaxOutputBitrate:
 Sets the maximum allowed output bitrate, in kbps. More...
 
(void) - setMinOutputBitrate:
 Sets the minimum allowed output bitrate, in kbps. More...
 
(void) - setMuted:
 Sets whether output is muted. More...
 
(void) - setOutput:
 Sets the output. More...
 
(void) - setOutputDeactivated:
 Sets whether output is deactivated. More...
 
(void) - setOutputMuted:
 Sets whether output is muted. More...
 
(void) - setOutputRtpStreamId:
 Sets the output RTP stream identifier. More...
 
(void) - setOutputs:
 Sets the outputs. More...
 
(void) - setOutputSynchronizable:
 Sets whether output is synchronizable. More...
 
(void) - setOutputSynchronizationSource:
 Sets the output synchronization source. More...
 
(void) - setPersistent:
 Sets a value indicating whether this instance is persistent. More...
 
(void) - setSynchronizationSource:
 Sets the output synchronization source. More...
 
(void) - setSystemDelay:
 Sets the system delay in ticks. More...
 
(void) - setTargetOutputBitrate:
 Sets the target output bitrate, in kbps. More...
 
(FMLiveSwitchFuture< id > *) - start
 Starts this instance. More...
 
(FMLiveSwitchMediaSourceState) - state
 Gets the state. More...
 
(FMLiveSwitchFuture< id > *) - stop
 Stops this instance. More...
 
(long long) - synchronizationSource
 Gets the output synchronization source. More...
 
(long long) - systemDelay
 Gets the system delay in ticks. More...
 
(int) - targetOutputBitrate
 Gets the target output bitrate, in kbps. More...
 
(bool) - updateDisabled
 Updates the disabled property. More...
 
- Instance Methods inherited from <FMLiveSwitchIMediaOutput>
(void) - addOnDisabledChange:
 Adds a handler that is raised when the Disabled property changes state. More...
 
(void) - addOnDisabledChangeWithCaller:
 Adds a handler that is raised when the Disabled property changes state. More...
 
(id- addOnDisabledChangeWithCallerWithBlock
 Adds a handler that is raised when the Disabled property changes state. More...
 
(void) - addOnDisabledChangeWithCallerWithBlock:
 Adds a handler that is raised when the Disabled property changes state. More...
 
(void) - addOnPausedChange:
 Adds a handler that is raised when the Paused property changes state. More...
 
(void) - addOnProcessControlFrames:
 Adds a handler that is raised when control frames are processed. More...
 
(NSMutableArray *) - addOnProcessControlFramesWithBlock
 Adds a handler that is raised when control frames are processed. More...
 
(void) - addOnProcessControlFramesWithBlock:
 Adds a handler that is raised when control frames are processed. More...
 
(void) - addOnRaiseControlFrameResponses:
 Adds a handler that is raised when a control frame response is raised. More...
 
(NSMutableArray *) - addOnRaiseControlFrameResponsesWithBlock
 Adds a handler that is raised when a control frame response is raised. More...
 
(void) - addOnRaiseControlFrameResponsesWithBlock:
 Adds a handler that is raised when a control frame response is raised. More...
 
(void) - addOnRaiseFrame:
 Adds a handler that is raised when a frame is raised. More...
 
(FMLiveSwitchMediaFrame *) - addOnRaiseFrameWithBlock
 Adds a handler that is raised when a frame is raised. More...
 
(void) - addOnRaiseFrameWithBlock:
 Adds a handler that is raised when a frame is raised. More...
 
(int) - getCcmSequenceNumber
 Gets the CCM sequence number. More...
 
(long long) - getPipelineSystemDelayWithOutputFormat:
 Gets the total pipeline system delay in ticks for a given media format. More...
 
(void) - incrementCcmSequenceNumber
 Increments the CCM sequence number. More...
 
(int) - maxOutputBitrate
 Gets the maximum allowed output bitrate, in kbps. More...
 
(int) - minOutputBitrate
 Gets the minimum allowed output bitrate, in kbps. More...
 
(bool) - outputDeactivated
 Gets whether output is deactivated. More...
 
(bool) - outputMuted
 Gets whether output is muted. More...
 
(NSString *) - outputRtpStreamId
 Gets the output RTP stream identifier. More...
 
(bool) - outputSynchronizable
 Gets whether output is synchronizable. More...
 
(long long) - outputSynchronizationSource
 Gets the output synchronization source. More...
 
(void) - processControlFrames:
 Processes control frames. More...
 
(FMLiveSwitchError *) - processSdpMediaDescriptionFromOutputWithMediaDescription:isOffer:isLocalDescription:
 Processes a local SDP media description from an output. More...
 
(void) - processSourceStatsFromOutputWithSourceStats:
 Processes source stats from an output. More...
 
(void) - processTrackStatsFromOutputWithTrackStats:
 Processes track stats from an output. More...
 
(void) - removeOnDisabledChange:
 Removes a handler that is raised when the Disabled property changes state. More...
 
(void) - removeOnDisabledChangeWithCaller:
 Removes a handler that is raised when the Disabled property changes state. More...
 
(void) - removeOnPausedChange:
 Removes a handler that is raised when the Paused property changes state. More...
 
(void) - removeOnProcessControlFrames:
 Removes a handler that is raised when control frames are processed. More...
 
(void) - removeOnRaiseControlFrameResponses:
 Removes a handler that is raised when a control frame response is raised. More...
 
(void) - removeOnRaiseFrame:
 Removes a handler that is raised when a frame is raised. More...
 
(long long) - systemDelay
 Gets the system delay in ticks. More...
 
(int) - targetOutputBitrate
 Gets the target output bitrate, in kbps. More...
 
- Instance Methods inherited from <FMLiveSwitchIOutput>
(void) - addOutput:
 Adds an output. More...
 
(void) - addOutputs:
 Adds some outputs. More...
 
(NSObject< FMLiveSwitchIInput > *) - output
 Gets the output. More...
 
(FMLiveSwitchMediaFormat *) - outputFormat
 Gets the output format. More...
 
(NSMutableArray *) - outputs
 Gets the outputs. More...
 
(NSString *) - pipelineJsonFromOutput
 Gets the pipeline JSON from an output. More...
 
(bool) - removeOutput:
 Removes an output. More...
 
(void) - removeOutputs
 Removes all outputs. More...
 
(void) - removeOutputs:
 Removes some outputs. More...
 
- Instance Methods inherited from <FMLiveSwitchIElement>
(NSString *) - externalId
 Gets the external identifier. More...
 
(NSString *) - id
 Gets the identifier. More...
 
(NSString *) - pipelineJson
 Gets the pipeline JSON with this as the central point. More...
 
(void) - setExternalId:
 Sets the external identifier. More...
 
- Instance Methods inherited from <FMLiveSwitchIMediaElement>
(bool) - deactivated
 Gets a value indicating whether this instance is deactivated. More...
 
(bool) - destroy
 Destroys this instance. More...
 
(bool) - disabled
 Gets a value indicating whether this instance is disabled. More...
 
(NSString *) - label
 Gets a label that identifies this instance. More...
 
(bool) - muted
 Gets a value indicating whether this instance is muted. More...
 
(bool) - paused
 Gets a value indicating whether this instance is paused. More...
 
(bool) - persistent
 Gets a value indicating whether this instance is persistent. More...
 
(void) - setDeactivated:
 Sets a value indicating whether this instance is deactivated. More...
 
(void) - setMuted:
 Sets a value indicating whether this instance is muted. More...
 

Class Methods

(FMLiveSwitchCameraSourceBase *) + cameraSourceBaseWithOutputFormat:targetConfig:
 Initializes a new instance of the FMLiveSwitchScreenSourceBase class. More...
 
- Class Methods inherited from FMLiveSwitchVideoSource
(FMLiveSwitchVideoSource *) + videoSourceWithOutputFormat:
 Initializes a new instance of the FMLiveSwitchVideoSource class. More...
 
- Class Methods inherited from FMLiveSwitchMediaSource
(FMLiveSwitchMediaSource *) + mediaSourceWithOutputFormat:
 Initializes a new instance of the FMLiveSwitchMediaSource`8 class. More...
 

Additional Inherited Members

- Protected Attributes inherited from FMLiveSwitchMediaSource
 __pad0__: FMLiveSwitchMediaSourceBase<FMLiveSwitchIMediaOutput
 
 FMLiveSwitchIOutput
 
 FMLiveSwitchIMediaElement
 

Detailed Description

A base class for camera-based sources.

Method Documentation

◆ cameraSourceBaseWithOutputFormat:targetConfig:

+ (FMLiveSwitchCameraSourceBase*) cameraSourceBaseWithOutputFormat: (FMLiveSwitchVideoFormat *)  outputFormat
targetConfig: (FMLiveSwitchVideoConfig *)  targetConfig 

Initializes a new instance of the FMLiveSwitchScreenSourceBase class.

Parameters
outputFormatThe output format.
targetConfigThe target configuration.

◆ changeConfig:

- (FMLiveSwitchFuture<id>*) changeConfig: (FMLiveSwitchVideoConfig *)  config

Changes the video configuration.

Validates the configuration and delegates to DoChangeConfig when the source is started.

Parameters
configThe new video configuration.
Returns
A future that resolves when the configuration has been changed.

◆ changeFrameRate:

- (FMLiveSwitchFuture<id>*) changeFrameRate: (double)  frameRate

Changes the video frame rate.

Parameters
frameRateThe new frame rate.
Returns
A future that resolves when the frame rate has been changed.

◆ changeResolutionWithSize:

- (FMLiveSwitchFuture<id>*) changeResolutionWithSize: (FMLiveSwitchSize *)  size

Changes the video resolution.

Parameters
sizeThe new size.
Returns
A future that resolves when the resolution has been changed.

◆ changeResolutionWithWidth:height:

- (FMLiveSwitchFuture<id>*) changeResolutionWithWidth: (int)  width
height: (int)  height 

Changes the video resolution.

Parameters
widthThe new width.
heightThe new height.
Returns
A future that resolves when the resolution has been changed.

◆ config

Gets the current config.

A value of null indicates unset (pass-through).

◆ doChangeConfigWithPromise:config:

- (void) doChangeConfigWithPromise: (FMLiveSwitchPromise< id > *)  promise
config: (FMLiveSwitchVideoConfig *)  config 

Performs the actual configuration change when the source is in the Started state.

The default implementation stops and restarts the source.

Parameters
promiseThe promise to resolve or reject when the operation completes.
configThe new video configuration.

◆ frameRate

- (double) frameRate

Gets the current frame-rate, in fps.

A value of -1 indicates unset, and will default to the target frame-rate.

◆ initWithOutputFormat:targetConfig:

- (instancetype) initWithOutputFormat: (FMLiveSwitchVideoFormat *)  outputFormat
targetConfig: (FMLiveSwitchVideoConfig *)  targetConfig 

Initializes a new instance of the FMLiveSwitchScreenSourceBase class.

Parameters
outputFormatThe output format.
targetConfigThe target configuration.

◆ maxFrameRate

- (double) maxFrameRate

Gets the maximum output frame-rate, in fps.

A value of -1 indicates unset (no maximum).

◆ maxOutputFrameRate

- (double) maxOutputFrameRate

Gets the maximum allowed output frame-rate, in fps.

A value of -1 indicates unset (no maximum).

Implements FMLiveSwitchVideoSource.

◆ maxOutputSize

- (FMLiveSwitchSize*) maxOutputSize

Gets the maximum allowed output size.

A value of null indicates unset (no maximum).

Implements FMLiveSwitchVideoSource.

◆ maxSize

- (FMLiveSwitchSize*) maxSize

Gets the maximum output size.

A value of null indicates unset (no maximum).

◆ maxSupportedFrameRate

- (double) maxSupportedFrameRate

Gets the maximum supported frame-rate, in fps.

A value of -1 indicates unset (no maximum).

◆ maxSupportedSize

- (FMLiveSwitchSize*) maxSupportedSize

Gets the maximum supported size.

A value of null indicates unset (no maximum).

◆ minFrameRate

- (double) minFrameRate

Gets the minimum frame-rate, in fps.

A value of -1 indicates unset (no minimum).

◆ minOutputFrameRate

- (double) minOutputFrameRate

Gets the minimum allowed output frame-rate, in fps.

A value of -1 indicates unset (no minimum).

Implements FMLiveSwitchVideoSource.

◆ minOutputSize

- (FMLiveSwitchSize*) minOutputSize

Gets the minimum allowed output size.

A value of null indicates unset (no minimum).

Implements FMLiveSwitchVideoSource.

◆ minSize

- (FMLiveSwitchSize*) minSize

Gets the minimum size.

A value of null indicates unset (no minimum).

◆ minSupportedFrameRate

- (double) minSupportedFrameRate

Gets the minimum supported frame-rate, in fps.

A value of -1 indicates unset (no minimum).

◆ minSupportedSize

- (FMLiveSwitchSize*) minSupportedSize

Gets the minimum supported size.

A value of null indicates unset (no minimum).

◆ setConfig:

- (void) setConfig: (FMLiveSwitchVideoConfig *)  value

Sets the current config.

A value of null indicates unset (pass-through).

◆ setFrameRate:

- (void) setFrameRate: (double)  value

Sets the current frame-rate, in fps.

A value of -1 indicates unset, and will default to the target frame-rate.

◆ setMaxFrameRate:

- (void) setMaxFrameRate: (double)  value

Sets the maximum output frame-rate, in fps.

A value of -1 indicates unset (no maximum).

◆ setMaxOutputFrameRate:

- (void) setMaxOutputFrameRate: (double)  value

Sets the maximum allowed output frame-rate, in fps.

A value of -1 indicates unset (no maximum).

Implements FMLiveSwitchVideoSource.

◆ setMaxOutputSize:

- (void) setMaxOutputSize: (FMLiveSwitchSize *)  value

Sets the maximum allowed output size.

A value of null indicates unset (no maximum).

Implements FMLiveSwitchVideoSource.

◆ setMaxSize:

- (void) setMaxSize: (FMLiveSwitchSize *)  value

Sets the maximum output size.

A value of null indicates unset (no maximum).

◆ setMinFrameRate:

- (void) setMinFrameRate: (double)  value

Sets the minimum frame-rate, in fps.

A value of -1 indicates unset (no minimum).

◆ setMinOutputFrameRate:

- (void) setMinOutputFrameRate: (double)  value

Sets the minimum allowed output frame-rate, in fps.

A value of -1 indicates unset (no minimum).

Implements FMLiveSwitchVideoSource.

◆ setMinOutputSize:

- (void) setMinOutputSize: (FMLiveSwitchSize *)  value

Sets the minimum allowed output size.

A value of null indicates unset (no minimum).

Implements FMLiveSwitchVideoSource.

◆ setMinSize:

- (void) setMinSize: (FMLiveSwitchSize *)  value

Sets the minimum size.

A value of null indicates unset (no minimum).

◆ setSize:

- (void) setSize: (FMLiveSwitchSize *)  value

Sets the current size.

A value of null indicates unset, and will default to the target size.

◆ setStaticOutputFrameRate:

- (void) setStaticOutputFrameRate: (bool)  value

Sets whether minOutputFrameRate and maxOutputFrameRate should return minSupportedFrameRate and maxSupportedFrameRate, respectively, or response to changes in minFrameRate and maxFrameRate.

◆ setStaticOutputSize:

- (void) setStaticOutputSize: (bool)  value

Sets whether minOutputSize and maxOutputSize should return minSupportedSize and maxSupportedSize, respectively, or response to changes in minSize and maxSize.

◆ setTargetConfig:

- (void) setTargetConfig: (FMLiveSwitchVideoConfig *)  value

Sets the target config.

A value of null indicates unset (no target).

◆ setTargetFrameRate:

- (void) setTargetFrameRate: (double)  value

Sets the target frame-rate, in fps.

◆ setTargetOutputFrameRate:

- (void) setTargetOutputFrameRate: (double)  value

Sets the target output frame-rate, in fps.

Implements FMLiveSwitchVideoSource.

◆ setTargetOutputSize:

- (void) setTargetOutputSize: (FMLiveSwitchSize *)  value

Sets the target output size.

Implements FMLiveSwitchVideoSource.

◆ setTargetSize:

- (void) setTargetSize: (FMLiveSwitchSize *)  value

Sets the target size.

◆ size

- (FMLiveSwitchSize*) size

Gets the current size.

A value of null indicates unset, and will default to the target size.

◆ staticOutputFrameRate

- (bool) staticOutputFrameRate

Gets whether minOutputFrameRate and maxOutputFrameRate should return minSupportedFrameRate and maxSupportedFrameRate, respectively, or response to changes in minFrameRate and maxFrameRate.

◆ staticOutputSize

- (bool) staticOutputSize

Gets whether minOutputSize and maxOutputSize should return minSupportedSize and maxSupportedSize, respectively, or response to changes in minSize and maxSize.

◆ targetConfig

- (FMLiveSwitchVideoConfig*) targetConfig

Gets the target config.

A value of null indicates unset (no target).

◆ targetFrameRate

- (double) targetFrameRate

Gets the target frame-rate, in fps.

◆ targetOutputFrameRate

- (double) targetOutputFrameRate

Gets the target output frame-rate, in fps.

Implements FMLiveSwitchVideoSource.

◆ targetOutputSize

- (FMLiveSwitchSize*) targetOutputSize

Gets the target output size.

Implements FMLiveSwitchVideoSource.

◆ targetSize

- (FMLiveSwitchSize*) targetSize

Gets the target size.