rolin.tencent.Shenzhen
rolin.tencent.Shenzhen

Reputation: 174

in chrome, html5 audio element will be mute unexpectedly

I have followed some events and attributes:
All the events can't be fired at all, like progress canplay, play and so on.

The attributes seems right:

muted: false, 
loop: true,
ended: false,
autoplay:true,
error: null.
networkState: 2(The user agent is actively trying to download data.)
readyState: 4(HAVE_FUTURE_DATA)
seekable.end(0): 56.81632614135742

Some timeranges:

played.length: 0, 
buffered.length: 1,
buffered.end(0): 56.81632614135742,

And another strange thing: I open another site with a HTML5 sounds game, it's also mute.
Now the only way to solve the problem is closing the chrome and to open it again.
My chrome is ver.16

Did you meet the same problem ? Dose this a problem of chrome ?

Upvotes: 1

Views: 1210

Answers (1)

beipawel
beipawel

Reputation: 433

This is not really a solution, sorry, but rather a confirmation that I know what you're talking about ;-) I think it's a Bug in Chrome. Last Week or so there was an update. I have a rails app, wich plays a short sound file via Audio(). Before the update it played smoothly, after the update, though no code regarding this feature was changed it plays most sound (randomly) as if you'd click the pause button in the middle of the recording and then play again, very fast. I have no pause button though. In Safari, OmniWeb, Firefox there's no such problem with the very same codebase. I think we'll read some more of such observations in the near future.

Upvotes: 1

Related Questions