All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class Audio extends MediaComponent
An audio media component to playback audio files.
Since:
7.0.0
Author:
Tobias Soloschenko, Andrew Lombardi
See Also:
  • Constructor Details

    • Audio

      public Audio(String id)
      Creates an audio component
      Parameters:
      id - the component id
    • Audio

      public Audio(String id, IModel<?> model)
      Creates an audio component
      Parameters:
      id - the component id
      model - the internally used model
    • Audio

      public Audio(String id, ResourceReference resourceReference)
      Creates an audio component
      Parameters:
      id - the component id
      resourceReference - the resource reference of the audio file
    • Audio

      public Audio(String id, IModel<?> model, ResourceReference resourceReference)
      Creates an audio component
      Parameters:
      id - the component id
      model - the internally used model
      resourceReference - the resource reference of the audio file
    • Audio

      public Audio(String id, ResourceReference resourceReference, PageParameters pageParameters)
      Creates an audio component
      Parameters:
      id - the component id
      resourceReference - the resource reference of the audio file
      pageParameters - the page parameters to be used to be prepended to the audio URL
    • Audio

      public Audio(String id, IModel<?> model, ResourceReference resourceReference, PageParameters pageParameters)
      Creates an audio component
      Parameters:
      id - the component id
      model - the internally used model
      resourceReference - the resource reference of the audio file
      pageParameters - the page parameters to be used to be prepended to the audio URL
    • Audio

      public Audio(String id, String url)
      Creates an audio component
      Parameters:
      id - the component id
      url - an external URL to be used for the audio component
    • Audio

      public Audio(String id, IModel<?> model, String url)
      Creates an audio component
      Parameters:
      id - the component id
      model - the internally used model
      url - an external URL to be used for the audio component
    • Audio

      public Audio(String id, String url, PageParameters pageParameters)
      Creates an audio component
      Parameters:
      id - the component id
      url - an external URL to be used for the audio component
      pageParameters - the page parameters to be used to be prepended to the audio URL
    • Audio

      public Audio(String id, IModel<?> model, String url, PageParameters pageParameters)
      Creates an audio component
      Parameters:
      id - the component id
      model - the internally used model
      url - an external URL to be used for the audio component
      pageParameters - the page parameters to be used to be prepended to the audio URL
  • Method Details