2a4bb073 by brandonocasey

removing linebreak after parens lines

1 parent 5a33fc57
......@@ -74,11 +74,10 @@ const updateMaster = function(master, media) {
// if the update could overlap existing segment information,
// merge the two lists
if (playlist.segments) {
result.playlists[i].segments = updateSegments(
playlist.segments,
media.segments,
media.mediaSequence - playlist.mediaSequence
);
result.playlists[i].segments = updateSegments(playlist.segments,
media.segments,
media.mediaSequence -
playlist.mediaSequence);
}
changed = true;
}
......@@ -518,9 +517,9 @@ export default class PlaylistLoader extends Stream {
// so fallback to interpolating between the segment index
// based on the known span of the timeline we are dealing with
// and the number of segments inside that span
return startIndex + Math.floor(
((originalTime - knownStart) / (knownEnd - knownStart)) *
(endIndex - startIndex));
return startIndex + Math.floor(((originalTime - knownStart) /
(knownEnd - knownStart)) *
(endIndex - startIndex));
}
// We _still_ haven't found a segment so load the last one
......
......@@ -152,11 +152,9 @@ export const duration = function(playlist, endSequence, includeTrailingTime) {
}
// calculate the total duration based on the segment durations
return intervalDuration(
playlist,
endSequence,
includeTrailingTime
);
return intervalDuration(playlist,
endSequence,
includeTrailingTime);
};
/**
......@@ -187,10 +185,9 @@ export const seekable = function(playlist) {
// of content from the end of the playlist
// https://tools.ietf.org/html/draft-pantos-http-live-streaming-16#section-6.3.3
start = intervalDuration(playlist, playlist.mediaSequence);
end = intervalDuration(
playlist,
playlist.mediaSequence + Math.max(0, playlist.segments.length - 3)
);
end = intervalDuration(playlist,
playlist.mediaSequence +
Math.max(0, playlist.segments.length - 3));
return createTimeRange(start, end);
};
......