A media sink. More...
Instance Methods | |
(void) | - addInput: |
Adds an input. More... | |
(void) | - addInputs: |
Adds some inputs. More... | |
(void) | - addOnDisabledChange: |
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) | - addOnProcessControlFrameResponses: |
Adds a handler that is raised when control frame responses are processed. More... | |
(NSMutableArray *) | - addOnProcessControlFrameResponsesWithBlock |
Adds a handler that is raised when control frame responses are processed. More... | |
(void) | - addOnProcessControlFrameResponsesWithBlock: |
Adds a handler that is raised when control frame responses are processed. More... | |
(void) | - addOnProcessedControlFrameResponses: |
Adds a handler that is raised when control frame responses have been processed. More... | |
(NSMutableArray *) | - addOnProcessedControlFrameResponsesWithBlock |
Adds a handler that is raised when control frame responses have been processed. More... | |
(void) | - addOnProcessedControlFrameResponsesWithBlock: |
Adds a handler that is raised when control frame responses have been processed. More... | |
(void) | - addOnProcessedFrame: |
Adds a handler that is raised when a frame has been processed. More... | |
(TFrame) | - addOnProcessedFrameWithBlock |
Adds a handler that is raised when a frame has been processed. More... | |
(void) | - addOnProcessedFrameWithBlock: |
Adds a handler that is raised when a frame has been processed. More... | |
(void) | - addOnProcessFrame: |
Adds a handler that is raised when a frame is being processed. More... | |
(void) | - addOnProcessFrameException: |
Adds a handler that is raised when an exception is thrown while processing a frame. More... | |
(TFrame, NSException *) | - addOnProcessFrameExceptionWithBlock |
Adds a handler that is raised when an exception is thrown while processing a frame. More... | |
(void) | - addOnProcessFrameExceptionWithBlock: |
Adds a handler that is raised when an exception is thrown while processing a frame. More... | |
(TFrame) | - addOnProcessFrameWithBlock |
Adds a handler that is raised when a frame is being processed. More... | |
(void) | - addOnProcessFrameWithBlock: |
Adds a handler that is raised when a frame is being processed. More... | |
(void) | - addOnProcessFrameWithCaller: |
Adds a handler that is raised when a frame is being processed. More... | |
(id, TFrame) | - addOnProcessFrameWithCallerWithBlock |
Adds a handler that is raised when a frame is being processed. More... | |
(void) | - addOnProcessFrameWithCallerWithBlock: |
Adds a handler that is raised when a frame is being processed. More... | |
(void) | - addOnRaiseControlFrames: |
Adds a handler that is raised when control frames are raised. More... | |
(NSMutableArray *) | - addOnRaiseControlFramesWithBlock |
Adds a handler that is raised when control frames are raised. More... | |
(void) | - addOnRaiseControlFramesWithBlock: |
Adds a handler that is raised when control frames are raised. More... | |
(void) | - addOnRaisedControlFrames: |
Adds a handler that is raised when control frames have been raised. More... | |
(NSMutableArray *) | - addOnRaisedControlFramesWithBlock |
Adds a handler that is raised when control frames have been raised. More... | |
(void) | - addOnRaisedControlFramesWithBlock: |
Adds a handler that is raised when control frames have been raised. More... | |
(void) | - addOnStateChange: |
Adds a handler that is raised when the state changes. More... | |
(TSink) | - 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... | |
(bool) | - allowDiagnosticTimer |
Gets whether this media sink is allowed to be timed. More... | |
(bool) | - allowInputRateTimer |
Gets whether this media pipe input rate is allowed to be timed. More... | |
(FMLiveSwitchFuture< id > *) | - changeOutput: |
Changes the current output. More... | |
(NSString *) | - content |
Gets the content descriptor. More... | |
(TIOutputCollection) | - createOutputCollectionWithInput: |
Creates an output collection. More... | |
(bool) | - deactivated |
Gets a value indicating whether this sink is deactivated. 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 sink is disabled. More... | |
(void) | - doDestroy |
Destroys this instance. More... | |
(void) | - doPostProcessFrame:inputBuffer: |
Post-processes a frame. More... | |
(void) | - doPreProcessFrame:inputBuffer: |
Pre-processes a frame. More... | |
(void) | - doProcessControlFrameResponses: |
Processes control frame responses. More... | |
(void) | - doProcessFrame:inputBuffer: |
Processes a frame. More... | |
(FMLiveSwitchError *) | - doProcessSdpMediaDescription:isOffer:isLocalDescription: |
Processes a remote SDP media description. More... | |
(void) | - doProcessSinkStatsFromInputWithSinkStats: |
Processes sink stats from an input. More... | |
(void) | - doProcessTrackStatsFromInputWithTrackStats: |
Processes track stats from an input. More... | |
(int) | - getCcmSequenceNumber |
Gets the CCM sequence number. More... | |
(FMLiveSwitchFuture< NSMutableArray * > *) | - getOutputs |
Gets the available outputs. More... | |
(long long) | - getPipelineSystemDelayWithOutputFormat: |
Gets the total pipeline system delay in ticks for a given output format. More... | |
(bool) | - hasInput: |
Determines whether this pipe has the specified input. More... | |
(void) | - incrementCcmSequenceNumber |
Increments the CCM sequence number. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class. More... | |
(instancetype) | - initWithInputFormat: |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class. More... | |
(TIOutput) | - input |
Gets the input. More... | |
(void) | - inputAddedWithInput: |
Called when an input is added. More... | |
(bool) | - inputDeactivated |
Gets whether input is deactivated. More... | |
(TFormat) | - inputFormat |
Gets the input format. More... | |
(bool) | - inputMuted |
Gets whether input is muted. More... | |
(void) | - inputRemovedWithInput: |
Called when an input is removed. More... | |
(NSString *) | - inputRtpStreamId |
Gets the input RTP stream identifier. More... | |
(NSMutableArray *) | - inputs |
Gets the inputs. More... | |
(long long) | - inputSynchronizationSource |
Gets the input synchronization source. More... | |
(bool) | - isMixer |
Gets whether this sink processes media from different sources. More... | |
(NSString *) | - label |
Gets a label that identifies this class. More... | |
(int) | - maxInputBitrate |
Gets the maximum allowed input bitrate, in kbps. More... | |
(FMLiveSwitchEncodingInfo *) | - maxInputEncoding |
Gets the maximum allowed input encoding. More... | |
(int) | - minInputBitrate |
Gets the minimum allowed input bitrate, in kbps. More... | |
(FMLiveSwitchEncodingInfo *) | - minInputEncoding |
Gets the minimum allowed input encoding. More... | |
(bool) | - muted |
Gets whether input is muted. More... | |
(FMLiveSwitchSinkOutput *) | - output |
Gets the current output. More... | |
(bool) | - overConstrained |
Gets whether this sink is over-constrained. More... | |
(bool) | - overConstrainedBitrate |
Gets whether the sink bitrate is over-constrained. More... | |
(bool) | - overConstrainedInput |
Gets whether the input is over-contrained. More... | |
(bool) | - overConstrainedInputBitrate |
Gets whether the minimum allowed input bitrate exceeds the maximum allowed input bitrate. More... | |
(bool) | - paused |
Gets a value indicating whether this sink 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 *) | - pipelineJsonFromInput |
Gets the pipeline JSON from an input. More... | |
(void) | - processControlFrameResponse: |
Processes a control frame response. More... | |
(void) | - processControlFrameResponses: |
Processes control frame responses. More... | |
(bool) | - processFrame: |
Processes a frame. More... | |
(FMLiveSwitchProcessFramePolicy) | - processFramePolicy |
Gets the ProcessFramePolicy for this media input. More... | |
(FMLiveSwitchError *) | - processSdpMediaDescriptionFromInputWithMediaDescription:isOffer:isLocalDescription: |
Processes a remote SDP media description from an output. More... | |
(void) | - processSinkStatsFromInputWithSinkStats: |
Processes sink stats from an input. More... | |
(void) | - processTrackStatsFromInputWithTrackStats: |
Processes track stats from an input. More... | |
(void) | - raiseControlFrame: |
Raises a control frame. More... | |
(void) | - raiseControlFrame:inputs: |
Raises a control frame. More... | |
(void) | - raiseControlFrames: |
Raises control frames. More... | |
(void) | - raiseControlFrames:inputs: |
Raises control frames. More... | |
(void) | - raiseDisabledChange |
Raises the OnDisabledChange event. More... | |
(bool) | - removeInput: |
Removes an input. More... | |
(void) | - removeInputs |
Removes all inputs. More... | |
(void) | - removeInputs: |
Removes some inputs. More... | |
(void) | - removeOnDisabledChange: |
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) | - removeOnProcessControlFrameResponses: |
Removes a handler that is raised when control frame responses are processed. More... | |
(void) | - removeOnProcessedControlFrameResponses: |
Removes a handler that is raised when control frame responses have been processed. More... | |
(void) | - removeOnProcessedFrame: |
Removes a handler that is raised when a frame has been processed. More... | |
(void) | - removeOnProcessFrame: |
Removes a handler that is raised when a frame is being processed. More... | |
(void) | - removeOnProcessFrameException: |
Removes a handler that is raised when an exception is thrown while processing a frame. More... | |
(void) | - removeOnProcessFrameWithCaller: |
Removes a handler that is raised when a frame is being processed. More... | |
(void) | - removeOnRaiseControlFrames: |
Removes a handler that is raised when control frames are raised. More... | |
(void) | - removeOnRaisedControlFrames: |
Removes a handler that is raised when control frames have been raised. More... | |
(void) | - removeOnStateChange: |
Removes a handler that is raised when the state changes. More... | |
(void) | - setDeactivated: |
Sets a value indicating whether this sink is deactivated. More... | |
(void) | - setDisabled: |
Sets a value indicating whether this sink is disabled. More... | |
(void) | - setInput: |
Sets the input. More... | |
(void) | - setInputDeactivated: |
Sets whether input is deactivated. More... | |
(void) | - setInputMuted: |
Sets whether input is muted. More... | |
(void) | - setInputRtpStreamId: |
Sets the input RTP stream identifier. More... | |
(void) | - setInputs: |
Sets the inputs. More... | |
(void) | - setInputSynchronizationSource: |
Sets the input synchronization source. More... | |
(void) | - setMaxInputBitrate: |
Sets the maximum allowed input bitrate, in kbps. More... | |
(void) | - setMaxInputEncoding: |
Sets the maximum allowed input encoding. More... | |
(void) | - setMinInputBitrate: |
Sets the minimum allowed input bitrate, in kbps. More... | |
(void) | - setMinInputEncoding: |
Sets the minimum allowed input encoding. More... | |
(void) | - setMuted: |
Sets whether input is muted. More... | |
(void) | - setOutput: |
Sets the current output. More... | |
(void) | - setPersistent: |
Sets a value indicating whether this instance is persistent. More... | |
(void) | - setProcessFramePolicy: |
Sets the ProcessFramePolicy for this media input. More... | |
(void) | - setSystemDelay: |
Sets the system delay in ticks. More... | |
(FMLiveSwitchMediaSinkState) | - state |
Gets the state. More... | |
(long long) | - systemDelay |
Gets the system delay in ticks. More... | |
(bool) | - trySetInputFormatWithFrame: |
Sets the input format, if not set, using the frame's last buffer format. More... | |
(bool) | - updateDisabled |
Updates the disabled property. More... | |
Class Methods | |
(FMLiveSwitchMediaSink *) | + mediaSink |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class. More... | |
(FMLiveSwitchMediaSink *) | + mediaSinkWithInputFormat: |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class. More... | |
Protected Attributes | |
__pad0__: FMLiveSwitchMediaSinkBase<FMLiveSwitchIMediaInput | |
FMLiveSwitchIInput | |
FMLiveSwitchIMediaElement | |
A media sink.
- (void) addInput: | (TIOutput) | input |
Adds an input.
input | The input. |
- (void) addInputs: | (NSMutableArray *) | inputs |
Adds some inputs.
inputs | The inputs. |
- (void) addOnDisabledChange: | (FMLiveSwitchAction0 *) | value |
Adds a handler that is raised when the Disabled property changes state.
- (void) addOnPausedChange: | (FMLiveSwitchAction0 *) | value |
Adds a handler that is raised when the Paused property changes state.
- (void) addOnProcessControlFrameResponses: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Adds a handler that is raised when control frame responses are processed.
- (NSMutableArray*) addOnProcessControlFrameResponsesWithBlock |
Adds a handler that is raised when control frame responses are processed.
- (void) addOnProcessControlFrameResponsesWithBlock: | (void(^)(NSMutableArray *)) | valueBlock |
Adds a handler that is raised when control frame responses are processed.
- (void) addOnProcessedControlFrameResponses: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Adds a handler that is raised when control frame responses have been processed.
- (NSMutableArray*) addOnProcessedControlFrameResponsesWithBlock |
Adds a handler that is raised when control frame responses have been processed.
- (void) addOnProcessedControlFrameResponsesWithBlock: | (void(^)(NSMutableArray *)) | valueBlock |
Adds a handler that is raised when control frame responses have been processed.
- (void) addOnProcessedFrame: | (FMLiveSwitchAction1< TFrame > *) | value |
Adds a handler that is raised when a frame has been processed.
- (TFrame) addOnProcessedFrameWithBlock |
Adds a handler that is raised when a frame has been processed.
- (void) addOnProcessedFrameWithBlock: | (void(^)(TFrame)) | valueBlock |
Adds a handler that is raised when a frame has been processed.
- (void) addOnProcessFrame: | (FMLiveSwitchAction1< TFrame > *) | value |
Adds a handler that is raised when a frame is being processed.
- (void) addOnProcessFrameException: | (FMLiveSwitchAction2< TFrame, NSException * > *) | value |
Adds a handler that is raised when an exception is thrown while processing a frame.
- (TFrame, NSException*) addOnProcessFrameExceptionWithBlock |
Adds a handler that is raised when an exception is thrown while processing a frame.
- (void) addOnProcessFrameExceptionWithBlock: | (void(^)(TFrame, NSException *)) | valueBlock |
Adds a handler that is raised when an exception is thrown while processing a frame.
- (TFrame) addOnProcessFrameWithBlock |
Adds a handler that is raised when a frame is being processed.
- (void) addOnProcessFrameWithBlock: | (void(^)(TFrame)) | valueBlock |
Adds a handler that is raised when a frame is being processed.
- (void) addOnProcessFrameWithCaller: | (FMLiveSwitchAction2< id, TFrame > *) | value |
Adds a handler that is raised when a frame is being processed.
- (id, TFrame) addOnProcessFrameWithCallerWithBlock |
Adds a handler that is raised when a frame is being processed.
- (void) addOnProcessFrameWithCallerWithBlock: | (void(^)(id, TFrame)) | valueBlock |
Adds a handler that is raised when a frame is being processed.
- (void) addOnRaiseControlFrames: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Adds a handler that is raised when control frames are raised.
- (NSMutableArray*) addOnRaiseControlFramesWithBlock |
Adds a handler that is raised when control frames are raised.
- (void) addOnRaiseControlFramesWithBlock: | (void(^)(NSMutableArray *)) | valueBlock |
Adds a handler that is raised when control frames are raised.
- (void) addOnRaisedControlFrames: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Adds a handler that is raised when control frames have been raised.
- (NSMutableArray*) addOnRaisedControlFramesWithBlock |
Adds a handler that is raised when control frames have been raised.
- (void) addOnRaisedControlFramesWithBlock: | (void(^)(NSMutableArray *)) | valueBlock |
Adds a handler that is raised when control frames have been raised.
- (void) addOnStateChange: | (FMLiveSwitchAction1< TSink > *) | value |
Adds a handler that is raised when the state changes.
- (TSink) addOnStateChangeWithBlock |
Adds a handler that is raised when the state changes.
- (void) addOnStateChangeWithBlock: | (void(^)(TSink)) | valueBlock |
Adds a handler that is raised when the state changes.
- (bool) allowDiagnosticTimer |
Gets whether this media sink is allowed to be timed.
- (bool) allowInputRateTimer |
Gets whether this media pipe input rate is allowed to be timed.
- (FMLiveSwitchFuture<id>*) changeOutput: | (FMLiveSwitchSinkOutput *) | output |
Changes the current output.
output | The output. |
- (NSString*) content |
Gets the content descriptor.
Implemented in FMLiveSwitchVideoSink.
- (TIOutputCollection) createOutputCollectionWithInput: | (TIInput) | input |
Creates an output collection.
input | The input. |
- (bool) deactivated |
Gets a value indicating whether this sink is deactivated.
Deactivating a sink disables it until it is activated again. A deactivated sink will not process any frames. Alias for FMLiveSwitchMediaSink`8inputDeactivated.
- (NSString*) description |
Returns a string that represents this instance.
- (bool) destroy |
Destroys this instance.
- (bool) disabled |
Gets a value indicating whether this sink is disabled.
A sink is automatically disabled if it is deactivated. A disabled sink will not accept frames raised by its inputs. Setting the value of MediaSink.Disabled is deprecated. Set MediaSink.Deactivated instead.
- (void) doDestroy |
Destroys this instance.
Implemented in FMLiveSwitchYuv4MpegVideoSink, FMLiveSwitchWaveAudioSink, FMLiveSwitchOggAudioSink, FMLiveSwitchNullVideoSink, FMLiveSwitchNullAudioSink, FMLiveSwitchMatroskaVideoSink, FMLiveSwitchMatroskaAudioSink, and FMLiveSwitchIvfVideoSink.
- (void) doPostProcessFrame: | (TFrame) | frame | |
inputBuffer: | (TBuffer) | inputBuffer | |
Post-processes a frame.
frame | The frame. |
inputBuffer | The input buffer. |
- (void) doPreProcessFrame: | (TFrame) | frame | |
inputBuffer: | (TBuffer) | inputBuffer | |
Pre-processes a frame.
frame | The frame. |
inputBuffer | The input buffer. |
- (void) doProcessControlFrameResponses: | (NSMutableArray *) | controlFrameResponses |
Processes control frame responses.
controlFrameResponses | The control frame responses. |
- (void) doProcessFrame: | (TFrame) | frame | |
inputBuffer: | (TBuffer) | inputBuffer | |
Processes a frame.
frame | The frame. |
inputBuffer | The input buffer. |
- (FMLiveSwitchError*) doProcessSdpMediaDescription: | (FMLiveSwitchSdpMediaDescription *) | mediaDescription | |
isOffer: | (bool) | isOffer | |
isLocalDescription: | (bool) | isLocalDescription | |
Processes a remote SDP media description.
mediaDescription | The media description. |
isOffer | if set to true [is offer]. |
isLocalDescription | if set to true [is local description]. |
- (void) doProcessSinkStatsFromInputWithSinkStats: | (FMLiveSwitchMediaSinkStats *) | sinkStats |
Processes sink stats from an input.
sinkStats | The stats. |
- (void) doProcessTrackStatsFromInputWithTrackStats: | (FMLiveSwitchMediaTrackStats *) | trackStats |
Processes track stats from an input.
trackStats | The track stats. |
- (int) getCcmSequenceNumber |
Gets the CCM sequence number.
- (FMLiveSwitchFuture<NSMutableArray*>*) getOutputs |
Gets the available outputs.
- (long long) getPipelineSystemDelayWithOutputFormat: | (TFormat) | outputFormat |
Gets the total pipeline system delay in ticks for a given output format.
outputFormat | The output format. |
- (bool) hasInput: | (TIOutput) | input |
Determines whether this pipe has the specified input.
input | The input. |
- (void) incrementCcmSequenceNumber |
Increments the CCM sequence number.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class.
Implemented in FMLiveSwitchVideoSink, FMLiveSwitchNullVideoSink, FMLiveSwitchNullAudioSink, and FMLiveSwitchAudioSink.
- (instancetype) initWithInputFormat: | (TFormat) | inputFormat |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class.
inputFormat | The input format. |
- (TIOutput) input |
Gets the input.
- (void) inputAddedWithInput: | (TIOutput) | input |
Called when an input is added.
input | The input. |
- (bool) inputDeactivated |
Gets whether input is deactivated.
- (TFormat) inputFormat |
Gets the input format.
- (bool) inputMuted |
Gets whether input is muted.
- (void) inputRemovedWithInput: | (TIOutput) | input |
Called when an input is removed.
input | The input. |
- (NSString*) inputRtpStreamId |
Gets the input RTP stream identifier.
If the input RTP stream identifier is null (unset), then getting this property returns the first valid output RTP stream identifier from the array of FMLiveSwitchMediaSink`8inputs, or null if they are all unset.
- (NSMutableArray*) inputs |
Gets the inputs.
- (long long) inputSynchronizationSource |
Gets the input synchronization source.
If the input synchronization source is -1 (unset), then getting this property returns the first valid output synchronization source from the array of FMLiveSwitchMediaSink`8inputs, or -1 if they are all unset.
- (bool) isMixer |
Gets whether this sink processes media from different sources.
- (NSString*) label |
Gets a label that identifies this class.
Implemented in FMLiveSwitchYuv4MpegVideoSink, FMLiveSwitchWaveAudioSink, FMLiveSwitchOggAudioSink, FMLiveSwitchNullVideoSink, FMLiveSwitchNullAudioSink, FMLiveSwitchMatroskaVideoSink, FMLiveSwitchMatroskaAudioSink, and FMLiveSwitchIvfVideoSink.
- (int) maxInputBitrate |
Gets the maximum allowed input bitrate, in kbps.
A value of -1 indicates unset (no maximum). Returns -1 by default.
- (FMLiveSwitchEncodingInfo*) maxInputEncoding |
Gets the maximum allowed input encoding.
Implemented in FMLiveSwitchVideoSink.
+ (FMLiveSwitchMediaSink*) mediaSink |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class.
+ (FMLiveSwitchMediaSink*) mediaSinkWithInputFormat: | (TFormat) | inputFormat |
Initializes a new instance of the FMLiveSwitchMediaSink`8 class.
inputFormat | The input format. |
- (int) minInputBitrate |
Gets the minimum allowed input bitrate, in kbps.
A value of -1 indicates unset (no minimum). Returns -1 by default.
- (FMLiveSwitchEncodingInfo*) minInputEncoding |
Gets the minimum allowed input encoding.
Implemented in FMLiveSwitchVideoSink.
- (bool) muted |
Gets whether input is muted.
Alias for FMLiveSwitchMediaSink`8inputMuted.
- (FMLiveSwitchSinkOutput*) output |
Gets the current output.
- (bool) overConstrained |
Gets whether this sink is over-constrained.
A sink is over-constrained if it's input is over-constrained.
- (bool) overConstrainedBitrate |
Gets whether the sink bitrate is over-constrained.
A sink bitrate is over-constrained if the input bitrate is over-constrained.
- (bool) overConstrainedInput |
Gets whether the input is over-contrained.
An input is over-constrained if it's input bitrate is over-contrained.
Implemented in FMLiveSwitchVideoSink.
- (bool) overConstrainedInputBitrate |
Gets whether the minimum allowed input bitrate exceeds the maximum allowed input bitrate.
- (bool) paused |
Gets a value indicating whether this sink is paused.
- (bool) persistent |
Gets a value indicating whether this instance is persistent.
If true
, this instance will not be destroyed unless FMLiveSwitchMediaSink`8destroy is called explicitly on this instance. It will survive destruction of any parent elements that are being destroyed.
- (NSString*) pipelineJson |
Gets the pipeline JSON with this as the central point.
- (NSString*) pipelineJsonFromInput |
Gets the pipeline JSON from an input.
- (void) processControlFrameResponse: | (FMLiveSwitchMediaControlFrame *) | controlFrameResponse |
Processes a control frame response.
controlFrameResponse | The control frame response. |
- (void) processControlFrameResponses: | (NSMutableArray *) | controlFrameResponses |
Processes control frame responses.
controlFrameResponses | The control frame responses. |
- (bool) processFrame: | (TFrame) | frame |
Processes a frame.
frame | The frame. |
- (FMLiveSwitchProcessFramePolicy) processFramePolicy |
Gets the ProcessFramePolicy for this media input.
- (FMLiveSwitchError*) processSdpMediaDescriptionFromInputWithMediaDescription: | (FMLiveSwitchSdpMediaDescription *) | mediaDescription | |
isOffer: | (bool) | isOffer | |
isLocalDescription: | (bool) | isLocalDescription | |
Processes a remote SDP media description from an output.
mediaDescription | The media description. |
isOffer | if set to true [is offer]. |
isLocalDescription | if set to true [is local description]. |
- (void) processSinkStatsFromInputWithSinkStats: | (FMLiveSwitchMediaSinkStats *) | sinkStats |
Processes sink stats from an input.
sinkStats | The sink stats. |
- (void) processTrackStatsFromInputWithTrackStats: | (FMLiveSwitchMediaTrackStats *) | trackStats |
Processes track stats from an input.
trackStats | The track stats. |
- (void) raiseControlFrame: | (FMLiveSwitchMediaControlFrame *) | controlFrame |
Raises a control frame.
controlFrame | The control frame. |
- (void) raiseControlFrame: | (FMLiveSwitchMediaControlFrame *) | controlFrame | |
inputs: | (NSMutableArray *) | inputs | |
Raises a control frame.
controlFrame | The control frame. |
inputs | The inputs. |
- (void) raiseControlFrames: | (NSMutableArray *) | controlFrames |
Raises control frames.
controlFrames | The control frames. |
- (void) raiseControlFrames: | (NSMutableArray *) | controlFrames | |
inputs: | (NSMutableArray *) | inputs | |
Raises control frames.
controlFrames | The control frames. |
inputs | The inputs. |
- (void) raiseDisabledChange |
Raises the OnDisabledChange event.
- (bool) removeInput: | (TIOutput) | input |
Removes an input.
input | The input. |
- (void) removeInputs |
Removes all inputs.
- (void) removeInputs: | (NSMutableArray *) | inputs |
Removes some inputs.
inputs | The inputs. |
- (void) removeOnDisabledChange: | (FMLiveSwitchAction0 *) | value |
Removes a handler that is raised when the Disabled property changes state.
- (void) removeOnPausedChange: | (FMLiveSwitchAction0 *) | value |
Removes a handler that is raised when the Paused property changes state.
- (void) removeOnProcessControlFrameResponses: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Removes a handler that is raised when control frame responses are processed.
- (void) removeOnProcessedControlFrameResponses: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Removes a handler that is raised when control frame responses have been processed.
- (void) removeOnProcessedFrame: | (FMLiveSwitchAction1< TFrame > *) | value |
Removes a handler that is raised when a frame has been processed.
- (void) removeOnProcessFrame: | (FMLiveSwitchAction1< TFrame > *) | value |
Removes a handler that is raised when a frame is being processed.
- (void) removeOnProcessFrameException: | (FMLiveSwitchAction2< TFrame, NSException * > *) | value |
Removes a handler that is raised when an exception is thrown while processing a frame.
- (void) removeOnProcessFrameWithCaller: | (FMLiveSwitchAction2< id, TFrame > *) | value |
Removes a handler that is raised when a frame is being processed.
- (void) removeOnRaiseControlFrames: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Removes a handler that is raised when control frames are raised.
- (void) removeOnRaisedControlFrames: | (FMLiveSwitchAction1< NSMutableArray * > *) | value |
Removes a handler that is raised when control frames have been raised.
- (void) removeOnStateChange: | (FMLiveSwitchAction1< TSink > *) | value |
Removes a handler that is raised when the state changes.
- (void) setDeactivated: | (bool) | value |
Sets a value indicating whether this sink is deactivated.
Deactivating a sink disables it until it is activated again. A deactivated sink will not process any frames. Alias for FMLiveSwitchMediaSink`8inputDeactivated.
- (void) setDisabled: | (bool) | value |
Sets a value indicating whether this sink is disabled.
A sink is automatically disabled if it is deactivated. A disabled sink will not accept frames raised by its inputs. Setting the value of MediaSink.Disabled is deprecated. Set MediaSink.Deactivated instead.
- (void) setInput: | (TIOutput) | value |
Sets the input.
- (void) setInputDeactivated: | (bool) | value |
Sets whether input is deactivated.
- (void) setInputMuted: | (bool) | value |
Sets whether input is muted.
- (void) setInputRtpStreamId: | (NSString *) | value |
Sets the input RTP stream identifier.
If the input RTP stream identifier is null (unset), then getting this property returns the first valid output RTP stream identifier from the array of FMLiveSwitchMediaSink`8inputs, or null if they are all unset.
- (void) setInputs: | (NSMutableArray *) | value |
Sets the inputs.
- (void) setInputSynchronizationSource: | (long long) | value |
Sets the input synchronization source.
If the input synchronization source is -1 (unset), then getting this property returns the first valid output synchronization source from the array of FMLiveSwitchMediaSink`8inputs, or -1 if they are all unset.
- (void) setMaxInputBitrate: | (int) | value |
Sets the maximum allowed input bitrate, in kbps.
A value of -1 indicates unset (no maximum). Returns -1 by default.
- (void) setMaxInputEncoding: | (FMLiveSwitchEncodingInfo *) | value |
Sets the maximum allowed input encoding.
Implemented in FMLiveSwitchVideoSink.
- (void) setMinInputBitrate: | (int) | value |
Sets the minimum allowed input bitrate, in kbps.
A value of -1 indicates unset (no minimum). Returns -1 by default.
- (void) setMinInputEncoding: | (FMLiveSwitchEncodingInfo *) | value |
Sets the minimum allowed input encoding.
Implemented in FMLiveSwitchVideoSink.
- (void) setMuted: | (bool) | value |
Sets whether input is muted.
Alias for FMLiveSwitchMediaSink`8inputMuted.
- (void) setOutput: | (FMLiveSwitchSinkOutput *) | value |
Sets the current output.
- (void) setPersistent: | (bool) | value |
Sets a value indicating whether this instance is persistent.
If true
, this instance will not be destroyed unless FMLiveSwitchMediaSink`8destroy is called explicitly on this instance. It will survive destruction of any parent elements that are being destroyed.
- (void) setProcessFramePolicy: | (FMLiveSwitchProcessFramePolicy) | value |
Sets the ProcessFramePolicy for this media input.
- (void) setSystemDelay: | (long long) | value |
Sets the system delay in ticks.
- (FMLiveSwitchMediaSinkState) state |
Gets the state.
- (long long) systemDelay |
Gets the system delay in ticks.
- (bool) trySetInputFormatWithFrame: | (TFrame) | frame |
Sets the input format, if not set, using the frame's last buffer format.
frame | The frame. |
true
if the input format was set. - (bool) updateDisabled |
Updates the disabled property.
|
protected |
|
protected |
|
protected |