Class BDAChannelEventArgs
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Provides data for Broadcast Driver Architecture (BDA) channel-related events.
public class BDAChannelEventArgs : EventArgsInheritance
Inherited Members
Examples
// Event handler for BDA channel changes
void OnBDAChannelChanged(object sender, BDAChannelEventArgs e)
{
Console.WriteLine($"Channel changed to: {e.Channel.Name}");
Console.WriteLine($"Frequency: {e.Channel.Frequency} Hz");
Console.WriteLine($"Channel Number: {e.Channel.ChannelNumber}");
// Update UI or perform other actions based on the new channel
UpdateChannelDisplay(e.Channel);
}
// Subscribe to the event
tuner.ChannelChanged += OnBDAChannelChanged;
Remarks
This event args class is used to notify about BDA channel changes in digital TV tuning scenarios. BDA is a Microsoft driver model for digital TV tuning devices, supporting various broadcast standards including DVB (Digital Video Broadcasting), ATSC (Advanced Television Systems Committee), and ISDB.
This event is typically raised when: - A channel is selected or changed - Channel information is updated - A channel scan discovers a new channel - Channel properties are modified
This class is only available on Windows platforms where BDA is supported.
Constructors
BDAChannelEventArgs(BDAChannel)
Initializes a new instance of the VisioForge.Core.Types.Events.BDAChannelEventArgs class with the specified channel information.
public BDAChannelEventArgs(BDAChannel channel)Parameters
channelBDAChannel-
The VisioForge.Core.Types.VideoCapture.BDAChannel object containing information about the broadcast channel. This parameter cannot be null.
Examples
// Create a BDA channel event when a new channel is selected
var channel = new BDAChannel
{
Name = "Discovery Channel",
ChannelNumber = 42,
Frequency = 545000000, // 545 MHz
// ... other channel properties
};
var eventArgs = new BDAChannelEventArgs(channel);
ChannelChanged?.Invoke(this, eventArgs);
Remarks
This constructor is typically called by BDA tuner components when channel-related events occur, such as channel selection, channel scan results, or channel property updates.
Exceptions
- ArgumentNullException
-
Thrown when
channelis null.
Properties
Channel
Gets the BDA channel information associated with this event.
public BDAChannel Channel { get; }Property Value
Remarks
The channel object contains all necessary information to tune to and identify a digital broadcast channel. This includes technical parameters like frequency and modulation, as well as user-friendly information like channel name and number.