General Question: Setting and getting elapsed time within an audio source/file

55 views
Skip to first unread message

Chris

unread,
Feb 29, 2012, 9:23:48 PM2/29/12
to gwt-voices
I will say upfront that I have not used gwt-voices; however, I have
done a fair about of work implementing the GWT HTML5 Audio API, and
found it very useful to be able to get and set the current elapsed
time within a track. In one application, I use this information to
track animation within a separate component.

Looking through the gwt-voices source code, I did not see anything
pertaining to how a developer could seek or retrieve the current time
within a track, i.e. the user had played 5000ms (5s) out of a 10000ms
(10s) track.

It seems like this is something that would be included in gwt-voices,
as HTML 5 Audio supports audio seeking.

Please correct me if I am wrong or point me in the right direction, I
would appreciate it.

Thanks.

Fred Sauer

unread,
Mar 5, 2012, 4:10:42 PM3/5/12
to gwt-v...@googlegroups.com
gwt-voices aims to be a simple wrapper around several audio implementations (native, HTML5, Flash, Web Audio API), and is sort of stuck with "lowest common denominator" functionality, or something close to that.

I'd highly recommend taking a look at the Web Audio API (currently supported in Chrome and webkit nightlies) for a high degree of low latency control over sound. You best cross platform substitute for other browsers/platforms is probably Flash.

I see gwt-voices mostly as a bridge to the future when (ideally) the Web Audio API has been implemented in all major platforms and we can just use the API directly.


--
You received this message because you are subscribed to the Google Groups "gwt-voices" group.
To post to this group, send email to gwt-v...@googlegroups.com.
To unsubscribe from this group, send email to gwt-voices+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-voices?hl=en.




--
Fred Sauer
fr...@allen-sauer.com

Chris

unread,
Mar 6, 2012, 7:43:50 PM3/6/12
to gwt-v...@googlegroups.com
Fred - thanks for the response; I understand your approach and I, too, hope the WebAudio API really takes off.  First, though, Mozilla and Google need to come together with a compatible API.  Do you think that will happen?


On Monday, March 5, 2012 4:10:42 PM UTC-5, Fred Sauer wrote:
gwt-voices aims to be a simple wrapper around several audio implementations (native, HTML5, Flash, Web Audio API), and is sort of stuck with "lowest common denominator" functionality, or something close to that.

I'd highly recommend taking a look at the Web Audio API (currently supported in Chrome and webkit nightlies) for a high degree of low latency control over sound. You best cross platform substitute for other browsers/platforms is probably Flash.

I see gwt-voices mostly as a bridge to the future when (ideally) the Web Audio API has been implemented in all major platforms and we can just use the API directly.

On Wed, Feb 29, 2012 at 6:23
I will say upfront that I have not used gwt-voices; however, I have

Fred Sauer

unread,
Apr 30, 2012, 12:51:03 AM4/30/12
to gwt-v...@googlegroups.com
I encourage you to engage on the http://www.w3.org/2011/audio/ discussion group to help make this happen!

--
You received this message because you are subscribed to the Google Groups "gwt-voices" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-voices/-/jGjYaZzvIFsJ.

To post to this group, send email to gwt-v...@googlegroups.com.
To unsubscribe from this group, send email to gwt-voices+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-voices?hl=en.



--
Fred Sauer
fr...@allen-sauer.com
Reply all
Reply to author
Forward
0 new messages