Source code

Below there are three types of videos to show the basic functionality of Wicket's media implementation

The implementation features full support of video / audio / source / track tags.

Demonstrate the basic set of methods to configure a video (setAutoplay(false); setControls(true); setLooping(false); setWidth(320); setHeight(240);) The width and height are null by default which means that the video is going to be rendered in size of the media file. The PackageResourceReference is set to readBuffered(false) which means that the media file is not stored in memory.
This video is rendered with a source tag. You can add many source tags and apply a media query (setMedia(query);) so that based on the resolution different videos are going to be displayed.
The last sample shows a remote video located here: It can be added by set the url as String instead of adding a ResourceReference.