Class MediaDevicesEvent


public class MediaDevicesEvent extends ClientEvent<MediaDevicesListener>
Event fired when media devices are enumerated.
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • MediaDevicesEvent

      public MediaDevicesEvent(List<MediaDevice> devices)
      Constructs a MediaDevicesEvent.
      Parameters:
      devices - The list of available media devices.
  • Method Details

    • getDevices

      public List<MediaDevice> getDevices()
      Returns the list of all available media devices.
      Returns:
      Unmodifiable list of media devices.
    • getAudioInputDevices

      public List<MediaDevice> getAudioInputDevices()
      Returns a list of audio input devices (microphones).
      Returns:
      List of microphone devices.
    • getAudioOutputDevices

      public List<MediaDevice> getAudioOutputDevices()
      Returns a list of audio output devices (speakers/headphones).
      Returns:
      List of audio output devices.
    • getVideoInputDevices

      public List<MediaDevice> getVideoInputDevices()
      Returns a list of video input devices (cameras).
      Returns:
      List of camera devices.
    • getDeviceCount

      public int getDeviceCount()
      Returns the number of available devices.
      Returns:
      Device count.
    • dispatchTo

      public void dispatchTo(MediaDevicesListener listener)
      Description copied from class: Event
      Dispatches this event to the specified listener.

      Subclasses implement this method to call the appropriate handler method on the listener interface.

      Specified by:
      dispatchTo in class Event<MediaDevicesListener>
      Parameters:
      listener - the listener to dispatch this event to
    • toString

      public String toString()
      Overrides:
      toString in class Object