These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:23 pm Advanced search

problem with <audio>

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

problem with <audio>

Postby Nikolay » Thu Mar 18, 2010 5:51 pm

Good evening (night/morning/day)!

First I do this:

var audioObject = new Audio("sound.wav");
audioObject.play();

And it really play music. then I do this:

audioObject.pause();
alert(audioObject.currentTime);

And it show me time offset when I set pause. But when I try to do something like this:

audioObject.currentTime = 0;

it raise exception INDEX_SIZE_ERR. When I do

alert(audioObject.seekable.length);

it show me 0.
Please, tell me how I can change position of playing sound.
I try to do it using WebKit engine (QtWebKit).

P.S. Sorry for my English
Nikolay
<h6>
 
Posts: 1
Joined: Thu Mar 18, 2010 5:26 pm

Postby zcorpan » Fri Mar 19, 2010 11:53 am

It sounds like a bug in WebKit. You can file bugs here: https://bugs.webkit.org/
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby spmorr02 » Fri Mar 19, 2010 1:27 pm

I think its actually that this feature hasn't been implemented yet. I could be wrong though
spmorr02
<h5>
 
Posts: 19
Joined: Thu Jan 21, 2010 5:37 pm
Location: Louisville, Kentucky


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests