Example usage for org.apache.wicket.markup.html.media.video Video setPoster

List of usage examples for org.apache.wicket.markup.html.media.video Video setPoster

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.media.video Video setPoster.

Prototype

public void setPoster(ResourceReference poster) 

Source Link

Document

Sets the image to be displayed if the video isn't available

Usage

From source file:org.wicketstuff.html5.media.webrtc.WebRTC.java

License:Apache License

/**
 * Configures the given video for web rtc. If the video and mic are rejected for usage a dummy
 * picture is going to be shown./*from   w  ww .  j  a  v a  2 s  . c  o  m*/
 * 
 * @return the configured video
 */
private Video configureVideo() {
    Video localVideo = getLocalVideo();
    localVideo.setOutputMarkupId(true);
    localVideo.setPoster(getNoVideoResourceReference());
    return localVideo;
}