"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isVideoTimeValid = void 0;
const misc_1 = require("./misc");
function isVideoTimeValid(value, videoDuration) {
    if (value < 0)
        return false;
    if ((0, misc_1.exists)(videoDuration) && value > videoDuration)
        return false;
    return true;
}
exports.isVideoTimeValid = isVideoTimeValid;
//# sourceMappingURL=video-view.js.map