mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-06 06:37:29 +00:00
* test(player): measure heavy films in real Safari and Chrome on macOS * test(player): count runtime media seeks and rate writes during the Safari bench * test(player): compare the Safari bench against native playback of the same media * test(player): split Safari control playback into per-frame media writes and per-frame transforms * perf(core): write media volume and mute only when they change * test(player): presented frame rate and compositor-animation controls in the Safari bench * perf(core): keep the media volume guard without a new comment line * test(player): derive presented frames from playback counters and snapshot video state * test(player): control page plays only listed media, and anchor the Safari process match * test(player): send the bench as code, and write only validated numbers from the browser * fix(player): perf host page gives the player a real box, so films are on screen when measured * fix(player): a player with no height set takes its film's shape instead of collapsing to nothing The player box had no intrinsic height, so an embed that set only a width (or nothing) was 0 px tall and showed no picture. An in-flow sizer now carries the composition's aspect ratio; a height the embed sets still wins, and a height-only embed keeps its full width. * test(player): label each embed on the player box page
51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{
|
|
"name": "@hyperframes/player",
|
|
"version": "0.8.181",
|
|
"description": "Embeddable web component for HyperFrames compositions",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/player"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/hyperframes-player.js",
|
|
"types": "./dist/hyperframes-player.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/hyperframes-player.d.ts",
|
|
"script": "./dist/hyperframes-player.global.js",
|
|
"import": "./dist/hyperframes-player.js",
|
|
"require": "./dist/hyperframes-player.cjs"
|
|
},
|
|
"./slideshow": {
|
|
"types": "./dist/slideshow/hyperframes-slideshow.d.ts",
|
|
"script": "./dist/slideshow/hyperframes-slideshow.global.js",
|
|
"import": "./dist/slideshow/hyperframes-slideshow.js",
|
|
"require": "./dist/slideshow/hyperframes-slideshow.cjs"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup && node scripts/verify-runtime-pin.mjs",
|
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/perf/tsconfig.json",
|
|
"test": "vitest run",
|
|
"test:browser-security": "bun run tests/browser/sandbox-origin.ts",
|
|
"test:browser-raster": "bun run tests/browser/preview-raster-size.ts",
|
|
"test:browser-box": "bun run tests/browser/player-box.ts",
|
|
"perf": "bun run tests/perf/index.ts"
|
|
},
|
|
"dependencies": {
|
|
"@hyperframes/core": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.1.0",
|
|
"gsap": "^3.12.5",
|
|
"puppeteer-core": "^25.2.1",
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^4.1.11"
|
|
}
|
|
}
|