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

public class Html5Player extends Panel
A customizable HTML5 video player plugin for jQuery based on bootstrap UI

Author:
miha
See Also:
  • Constructor Details

    • Html5Player

      public Html5Player(String markupId, IModel<List<Html5Player.IVideo>> model)
      Construct.
      Parameters:
      markupId - The components id
      model - The list of video resources
    • Html5Player

      public Html5Player(String markupId, IModel<List<Html5Player.IVideo>> model, Html5VideoConfig config)
      Construct.
      Parameters:
      markupId - The components id
      model - The list of video resources
      config - The javascript configuration
  • Method Details

    • onComponentTag

      protected void onComponentTag(ComponentTag tag)
      Overrides:
      onComponentTag in class Component
    • setWidth

      public Html5Player setWidth(int width)
      sets the width of the video
      Parameters:
      width - The width in pixel
      Returns:
      this instance for chaining
    • setHeight

      public Html5Player setHeight(int height)
      sets the height of the video
      Parameters:
      height - The height in pixel
      Returns:
      this instance for chaining
    • setErrorMessage

      public Html5Player setErrorMessage(String message)
      sets the error message which is shown if video tag is not supported by browser
      Parameters:
      message - The error message
      Returns:
      this instance for chaining
    • renderHead

      public void renderHead(IHeaderResponse response)
      Specified by:
      renderHead in interface IHeaderContributor
      Overrides:
      renderHead in class Component