[This is preliminary documentation and subject to change.]
The StateChange event indicates a change in the state of a device. The video access server fires this event.
Private Sub object_StateChange(lpdDevice As BPCDeviceBase, _
ByVal oldState As Long, ByVal newState As Long)
In addition to the device state notifications defined by Broadcast Architecture, the video server forwards device state notifications defined by the DirectShow filter graph. To allow for current and future DirectShow filter states, Broadcast Architecture reserves the first 0x4000 device state identifiers for the DirectShow values.
The following device states are defined by DirectShow. To locate more information, see Further Information on Streaming Video Services for the Client.
stateStopped | The device is not in use. |
statePaused | The device is paused. |
stateRunning | The device is running and actively processing the multimedia stream. |
The following device states are specific to Broadcast Architecture. They are declared in the Devtype.h file included with the Broadcast Architecture SDK:
Value | Meaning |
---|---|
BPC_STATE_SHUTDOWN | The video access server has received a system shutdown notification. |
BPC_STATE_REINIT_REQUEST | The video access server has received a request to reinitialize the filter graph. For more information about this process, see BPCVid.ReInit. |
BPC_STATE_REINIT_STARTED | All clients of the video access server are ready for the filter graph to be reinitialized. |
BPC_STATE_REINIT_COMPLETE | Reinitialization of the filter graph is complete. Clients may resume normal activity. Note that the devices in the filter graph may have changed since reinitialization. |
BPC_STATE_UNKNOWN | The device state is unknown. |
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in vidsvr.odl.
Import Library: Included as a resource in vid.ocx.
Unicode: Yes.