Add .gitignore to exclude all node packages and lock files
This commit is contained in:
Generated
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.findLastKeyframe = findLastKeyframe;
|
||||
function findLastKeyframe({ keyframes, timeInSeconds, }) {
|
||||
let bestKeyframe = null;
|
||||
for (const keyframe of keyframes) {
|
||||
if (keyframe.presentationTimeInSeconds > timeInSeconds &&
|
||||
keyframe.decodingTimeInSeconds > timeInSeconds) {
|
||||
break;
|
||||
}
|
||||
if (bestKeyframe === null ||
|
||||
keyframe.presentationTimeInSeconds >
|
||||
bestKeyframe.presentationTimeInSeconds) {
|
||||
bestKeyframe = keyframe;
|
||||
}
|
||||
}
|
||||
return bestKeyframe;
|
||||
}
|
||||
Reference in New Issue
Block a user