Skip to content

Commit

Permalink
refactor: segment/part choice and add more logging around the choice (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Apr 26, 2021
1 parent 92f1333 commit b8a5aa5
Show file tree
Hide file tree
Showing 6 changed files with 384 additions and 318 deletions.
8 changes: 8 additions & 0 deletions src/ranges.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,3 +437,11 @@ export const isRangeDifferent = function(a, b) {
// this is the same time range
return false;
};

export const lastBufferedEnd = function(a) {
if (!a || !a.length || !a.end) {
return;
}

return a.end(a.length - 1);
};
Loading

0 comments on commit b8a5aa5

Please sign in to comment.