Permalink
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...
1 parent 5ef153a commit 49c48f90c744bf06d665a1a5a4010761f7b725c0 @loris loris committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/soundmanager2.js
View
2 script/soundmanager2.js
@@ -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

@scottschiller

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.