WMEncoder.RunState

Windows Media Encoder SDK banner art

The RunState property retrieves a value that indicates whether the encoding process is running.

Syntax

WMENC_ENCODER_STATE = WMEncoder.RunState

Parameters

This property takes no parameters.

Property Value

This property returns a member of a WMENC_ENCODER_STATE enumeration type indicating the current operating state of the encoding process.

Remarks

This property is read-only. You can use this property in a timer control, or you can create an event sink and use the OnStateChange method.

Example Code

' Check to see if the encoding session is running.
Dim iEncoderState As WMENC_ENCODER_STATE
iEncoderState = Encoder.RunState
If iIndexState = WMENC_ENCODER_RUNNING Then
    ' Stop the encoding process.
    Encoder.Stop
End If

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also