Class AudioPlayerComponent

java.lang.Object
uk.co.caprica.vlcj.player.component.AudioPlayerComponent
All Implemented Interfaces:
MediaEventListener, MediaPlayerEventListener, MediaPlayerComponent
Direct Known Subclasses:
AudioListPlayerComponent

public class AudioPlayerComponent extends Object implements MediaPlayerComponent
Implementation of an audio player.

When the component is no longer needed, it should be released by invoking the release() method.

  • Constructor Details

    • AudioPlayerComponent

      public AudioPlayerComponent(MediaPlayerFactory mediaPlayerFactory)
      Construct a media player component.

      Any constructor parameter may be null, in which case a reasonable default will be used.

      Parameters:
      mediaPlayerFactory - media player factory
    • AudioPlayerComponent

      public AudioPlayerComponent(MediaPlayerSpecs.AudioPlayerSpec spec)
      Construct a media player component from a builder.
      Parameters:
      spec - builder
    • AudioPlayerComponent

      public AudioPlayerComponent()
      Construct a media player component with reasonable defaults.
  • Method Details