Browse Source
Abort outstanding segment requests when seeking
Abort outstanding segment requests when seeking
If segment requests are not aborted, fillBuffer will detect an outstanding XHR and fail to download the target segment. This would force the user to click twice on the progress bar to get seek to "take" if their was a segment request in progress.pull/80/head

3 changed files with 77 additions and 12 deletions
@ -0,0 +1,13 @@ |
|||
var grunt = require('grunt'), |
|||
extname = require('path').extname; |
|||
|
|||
grunt.file.recurse(process.cwd(), function(path) { |
|||
var json; |
|||
if (extname(path) === '.json') { |
|||
json = grunt.file.readJSON(path); |
|||
if (json.totalDuration) { |
|||
delete json.totalDuration; |
|||
grunt.file.write(path, JSON.stringify(json, null, ' ')); |
|||
} |
|||
} |
|||
}); |
Write
Preview
Loading…
Cancel
Save
Reference in new issue