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 com.vaadin.ui.JavaScriptFunction interface which causes classpath errors.

Known Issues

  • 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 FileResource for media sources. Known issues with other types of resources include:
    • ClassResource - frequent java.nio.channels.ClosedChannelException errors cause spotty playback.
    • ThemeResource - seeking doesn't work in Chrome because this is not a ConnectorResource, and the AcceptRanges: bytes HTTP header cannot be added. This may affect other browsers as well.

Install

Link to this version
BetaReleased 04 April 2016Apache License 2.0
Framework Support
Vaadin 7.4+
Browser Compatibility
10
11
Install with
Release notes - Version 1.3.3
  • Corrected player source URL translation