AudioVideo: AudioVideo is a UI component add-on for Vaadin 8. It consists of GwtAudio and GwtVideo components which are drop in replacements for Vaadin Audio and Video components with more API features, events and range request support for connector resources which have content length.
There the following additional features
API
- All normal Audio and Video API and the following
- getPosition()
- setPosition(…) Works with External url if server supports range requests. Works correctly also with ConnectorResources which have Content-Length, e.g. FileResource (see issue Implement support for Range-request in DownloadStream · Issue #1742 · vaadin/framework · GitHub and Support serving byte ranges for video resume etc. · Issue #4266 · vaadin/framework · GitHub)
- getVolume()
- setVolume(…)
- stop()
- getters for metadata
- ContentLengthConnectorResource: Helper class for the cases where you know content length, but need to use e.g. StreamResource
Events
- MediaEndedEvent
- MediaPausedEvent
- MediaStartedEvent
- MediaSeekedEvent
- MetadataLoadedEvent