RE: Audio component - read time

I think what you are asking is not supported by Audio component API.

If you need API to seek to position, get position etc. you could try this experimental add-on

https://github.com/TatuLund/VaadinAudioPlayer


In my webApp I’ve created audio player, simmilar to this code:


sample = new Audio();
final Resource audioResource = new ExternalResource(
"http://mirrors.creativecommons.org/ccmixter/contrib/Wired/The%20Rapture%20-%20Sister%20Saviour%20(Blackstrobe%20Remix).mp3");
sample.setSource(audioResource);
sample.setHtmlContentAllowed(true);
sample.setAltText("Can't play media");


I need to read current time from this player (how many seconds or minutes was this track played). Is it possible to get it somehow?