Class DVDeviceEventArgs
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Provides data for Digital Video (DV) device events.
public class DVDeviceEventArgs : EventArgsInheritance
Inherited Members
Examples
#if NET_WINDOWS
videoCapture.OnDVDeviceEvent += (sender, e) =>
{
switch (e.EventCode)
{
case DVCommand.Play:
Console.WriteLine("DV device started playback");
break;
case DVCommand.Stop:
Console.WriteLine("DV device stopped");
break;
case DVCommand.Eject:
Console.WriteLine("DV tape ejected");
break;
}
};
#endif
Remarks
This event arguments class is used for events related to DV devices such as DV camcorders connected via FireWire (IEEE 1394).
DV devices support various transport control commands for playback, recording, and device status monitoring.
This class is only available on Windows platforms where DirectShow DV device support is present.
Common use cases include monitoring tape transport status, device connection/disconnection, and control command responses.
Constructors
DVDeviceEventArgs(DVCommand)
Initializes a new instance of the VisioForge.Core.Types.Events.DVDeviceEventArgs class.
public DVDeviceEventArgs(DVCommand eventCode)Parameters
eventCodeDVCommand-
The DV command or event code that triggered this event.
Remarks
This constructor is typically called internally by the video capture system when DV device events occur.
The event code indicates the specific DV device operation or status change that triggered the event.
Only available on Windows platforms with DirectShow support.
Exceptions
- ArgumentException
-
Thrown when an invalid event code is provided.
Properties
EventCode
Gets the DV device command or event code.
public DVCommand EventCode { get; }Property Value
Remarks
The event code represents various DV device operations and status changes:
- Transport controls (Play, Stop, Pause, FastForward, Rewind)
- Recording operations (Record, RecordPause)
- Tape operations (Eject, Seek)
- Device status changes (Connected, Disconnected, TapeInserted, TapeRemoved)
Note: The XML comment incorrectly mentioned "filter IBaseFilter interface" - this property actually contains the DV command/event code.