Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

989 B
Raw Blame
import assert from "node:assert/strict";
import test from "node:test";

import { mediaLocalTemporalDomain } from "../src/index.js";
import type { SynchronizedMedia } from "../src/index.js";
import { fixtureResource } from "../../../test/fixture-resource.js";

const media: SynchronizedMedia = {
  frameDomain: { frameRate: { numerator: 30, denominator: 1 }, frameCount: 60 },
  visual: {
    artifact: { kind: "blob", resource: fixtureResource("domain:visual"), size: 1, mediaType: "video/mp4" },
    width: 1920, height: 1080,
  },
  audio: { artifact: { kind: "blob", resource: fixtureResource("domain:audio"), size: 1, mediaType: "audio/wav" } },
};

test("normalized media publishes a factual local temporal domain without program position", () => {
  const domain = mediaLocalTemporalDomain("opening-local", media);
  assert.deepEqual(domain, { id: "opening-local", ...media.frameDomain });
  assert.equal("timelineId" in domain, false);
  assert.equal("media" in domain, false);
});