Platform SDK: Broadcast Architecture |
The StateChange event indicates a change in the state of a device used by the Video control, such as from stopped to running. The Video Access server sends this event. Visual Basic syntax is shown.
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 Access server forwards device state notifications defined by the DirectShow filter graph. To allow for current and future DirectShow filter states, Broadcast Architecture reserves the device state identifiers from 0x0000 through 0x4000 for DirectShow values.
The following device states are defined by DirectShow.
Value | Meaning |
---|---|
statePaused | The device is paused. |
stateRunning | The device is running and actively processing the multimedia stream. |
stateStopped | The device is not in use. |
The following device states are specific to Broadcast Architecture. They are declared in the Devtype.h header file included with the software supporting Broadcast Architecture.
Value | Meaning |
---|---|
BPC_STATE_REINIT_COMPLETE | Reinitialization of the filter graph is complete. Clients may resume usual activity. Note that the devices in the filter graph may have changed since reinitialization. |
BPC_STATE_REINIT_REQUEST | The Video Access server has received a request to reinitialize the filter graph. For more information about this process, see the BPCVid.ReInit method. |
BPC_STATE_REINIT_STARTED | All clients of the Video Access server are ready for the filter graph to be reinitialized. |
BPC_STATE_SHUTDOWN | The Video Access server has received a notification indicating the operating system is shutting down. |
BPC_STATE_UNKNOWN | The device state is unknown. |
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in vidsvr.odl.
Import Library: Included as a resource in vid.ocx.