Package org.wicketstuff.html5

Examples of org.wicketstuff.html5.MapDemoPage


*/

    public Html5Media(String id, final IModel<List<MediaSource>> model) {
        super(id, model);
        this.sources = wrap(model);
        add(new Html5UtilsBehavior());
    }
View Full Code Here


  public Html5Media(String id, final IModel<List<MediaSource>> model)
  {
    super(id, model);
    sources = wrap(model);
    add(new Html5UtilsBehavior());
  }
View Full Code Here

    mountPage("/form-number", NumberFieldDemo.class);
    mountPage("/fileapi", FileApiPage.class);
    mountPage("/progress", ProgressDemo.class);

    mountPage("/eventSource", EventSourceDemo.class);
    mountResource("/eventSourceResource", new EventSourceResourceReference());
  }
View Full Code Here

  public VideoPlayer update(AjaxRequestTarget target, FlvRecording r) {
    boolean videoExists = r != null && getMp4Recording(r.getFileHash()).exists();
    if (videoExists) {
      PageParameters pp = new PageParameters().add("id", r.getFlvRecordingId());
      playerModel.setObject(Arrays.asList(
          new MediaSource("" + getRequestCycle().urlFor(mp4res, pp), "video/mp4")
          , new MediaSource("" + getRequestCycle().urlFor(oggres, pp), "video/ogg")));
      player.recId = r.getFlvRecordingId();
    }
    container.setVisible(videoExists);
    if (target != null) {
      target.add(container);
View Full Code Here

  public VideoPlayer update(AjaxRequestTarget target, FlvRecording r) {
    boolean videoExists = r != null && getMp4Recording(r.getFileHash()).exists();
    if (videoExists) {
      PageParameters pp = new PageParameters().add("id", r.getFlvRecordingId());
      playerModel.setObject(Arrays.asList(
          new MediaSource("" + getRequestCycle().urlFor(mp4res, pp), "video/mp4")
          , new MediaSource("" + getRequestCycle().urlFor(oggres, pp), "video/ogg")));
    }
    container.setVisible(videoExists);
    if (target != null) {
      target.add(container);
    }
View Full Code Here

*/
public class AudioDemo extends BasePage {

    public AudioDemo() {
        final List<MediaSource> mm = new ArrayList<MediaSource>();
        mm.add(new MediaSource("/loser.wav"));
        mm.add(new MediaSource("/loser.ogg"));

        IModel<List<MediaSource>> mediaSourceList = new AbstractReadOnlyModel<List<MediaSource>>() {
      private static final long serialVersionUID = 1L;

      public List<MediaSource> getObject() {
View Full Code Here

public class VideoDemo extends BasePage {

    public VideoDemo() {

        final List<MediaSource> mm = new ArrayList<MediaSource>();
        mm.add(new MediaSource("/dizzy.mp4", "video/mp4"));
        mm.add(new MediaSource("/dizzy.ogv", "video/ogg"));

        IModel<List<MediaSource>> mediaSourceList = new AbstractReadOnlyModel<List<MediaSource>>() {
      private static final long serialVersionUID = 1L;

      public List<MediaSource> getObject() {
View Full Code Here

  public VideoDemo()
  {

    final List<MediaSource> mm = new ArrayList<MediaSource>();
    mm.add(new MediaSource("dizzy.mp4", "video/mp4"));
    mm.add(new MediaSource("dizzy.ogv", "video/ogg"));

    IModel<List<MediaSource>> mediaSourceList = new AbstractReadOnlyModel<List<MediaSource>>()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  private static final long serialVersionUID = 8364098763780612520L;

  public AudioDemo()
  {
    final List<MediaSource> mm = new ArrayList<MediaSource>();
    mm.add(new MediaSource("loser.wav"));
    mm.add(new MediaSource("loser.ogg"));

    IModel<List<MediaSource>> mediaSourceList = new AbstractReadOnlyModel<List<MediaSource>>()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

      public List<MediaSource> getObject() {
                return mm;
            }
        };

        add(new Html5Audio("loser", mediaSourceList) {
      private static final long serialVersionUID = 1L;

      @Override
            protected boolean isControls() {
                return true;
View Full Code Here

TOP

Related Classes of org.wicketstuff.html5.MapDemoPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.