Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update buffered property for consistency

Update the buffered property returned in Flash mode to be consistent with HTML5.
Timeranges are supposed to be in seconds (http://www.w3.org/TR/html5/media-elements.html#time-ranges)
  • Loading branch information...
commit 49c48f90c744bf06d665a1a5a4010761f7b725c0 1 parent 5ef153a
Loris Guignard loris authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  script/soundmanager2.js
2  script/soundmanager2.js
View
@@ -2965,7 +2965,7 @@ function SoundManager(smURL, smID) {
if (!_t.isHTML5) {
_t.buffered = [{
'start': 0,
- 'end': _t.duration
+ 'end': _t.duration / 1000
}];
}

1 comment on commit 49c48f9

Scott Schiller

FYI I've reverted this and made "buffered" values always in msec, so they work with the SM2 API which uses msec regardless of Flash/HTML5 under the hood.
48f41ea

Please sign in to comment.
Something went wrong with that request. Please try again.