A server-side MediaElement.js player component. Add Audio, Video, and YouTube players to your applications with Flash and Silverlight fallback.
MediaElement.js Player for Vaadin
This Vaadin add-on provides a MediaElement.js media player component with hooks into client-side events and methods that allow you to play music/videos, control the player from the server side, and listen to player events such as Paused, Seeked, PlaybackEnded, etc.
MediaElement.js is a fully-featured HTML5 audo & video player with Flash and Silverlight fallback for older browsers and formats unsupported by HTML5. It supports a wide array of audio formats and YouTube/Vimeo sources. See the MediaElement.js website for more details.
This addon is currently packaged with MediaElement.js 2.20.0.
NOTE if using Vaadin 7.3.x or earlier you must use version 1.2.6 of this addon. Users of 7.4.0 and up should use 1.2.7+. This is due to a change in the
- The Vimeo player does not support RPC calls or event listeners. This is a current MEJS limitation.
- Chrome 44+ has removed support for the Silverlight plugin. Silverlight fallback will not work in Chrome.
- For best results use
FileResourcefor media sources. Known issues with other types of resources include:
java.nio.channels.ClosedChannelExceptionerrors cause spotty playback.
ThemeResource- seeking doesn't work in Chrome because this is not a
ConnectorResource, and the
AcceptRanges: bytesHTTP header cannot be added. This may affect other browsers as well.