Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/looking-glass-bridge.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/looking-glass-bridge.js.map

Large diffs are not rendered by default.

96 changes: 50 additions & 46 deletions dist/looking-glass-bridge.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/looking-glass-bridge.mjs.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/playlists/playlistItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface PlaylistItemArgs {
cols: number;
aspect: number;
view_count: number;
durationMS: number;
isRGBD: 0 | 1;
depth_loc: 0 | 1 | 2 | 3;
depth_inversion: 0 | 1;
Expand Down
6 changes: 6 additions & 0 deletions dist/schemas/schema.hologram.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export declare const QuiltHologramArgs: z.ZodObject<{
crop_pos_y: z.ZodOptional<z.ZodNumber>;
aspect: z.ZodNumber;
viewCount: z.ZodNumber;
duration: z.ZodOptional<z.ZodNumber>;
focus: z.ZodOptional<z.ZodNumber>;
zoom: z.ZodOptional<z.ZodNumber>;
tag: z.ZodOptional<z.ZodString>;
Expand All @@ -22,6 +23,7 @@ export declare const QuiltHologramArgs: z.ZodObject<{
crop_pos_y?: number | undefined;
zoom?: number | undefined;
tag?: string | undefined;
duration?: number | undefined;
}, {
aspect: number;
rows: number;
Expand All @@ -32,12 +34,14 @@ export declare const QuiltHologramArgs: z.ZodObject<{
crop_pos_y?: number | undefined;
zoom?: number | undefined;
tag?: string | undefined;
duration?: number | undefined;
}>;
export declare const RGBDHologramArgs: z.ZodObject<{
rows: z.ZodOptional<z.ZodNumber>;
columns: z.ZodOptional<z.ZodNumber>;
crop_pos_x: z.ZodOptional<z.ZodNumber>;
crop_pos_y: z.ZodOptional<z.ZodNumber>;
duration: z.ZodOptional<z.ZodNumber>;
/**Aspect Ratio of the hologram,
* this should match the source image you provide, not the RGBD Pair */
aspect: z.ZodNumber;
Expand Down Expand Up @@ -74,6 +78,7 @@ export declare const RGBDHologramArgs: z.ZodObject<{
depth_cutoff?: 0 | 1 | undefined;
tag?: string | undefined;
columns?: number | undefined;
duration?: number | undefined;
}, {
aspect: number;
zoom: number;
Expand All @@ -88,6 +93,7 @@ export declare const RGBDHologramArgs: z.ZodObject<{
depth_cutoff?: 0 | 1 | undefined;
tag?: string | undefined;
columns?: number | undefined;
duration?: number | undefined;
}>;
export interface HologramClasses {
quilt: QuiltHologram;
Expand Down
3 changes: 3 additions & 0 deletions dist/schemas/schema.requests.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export declare const insert_playlist_entry: z.ZodObject<{
cols: z.ZodNumber;
aspect: z.ZodNumber;
view_count: z.ZodNumber;
durationMS: z.ZodNumber;
crop_pos_x: z.ZodNumber;
crop_pos_y: z.ZodNumber;
isRGBD: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
Expand All @@ -135,6 +136,7 @@ export declare const insert_playlist_entry: z.ZodObject<{
crop_pos_y: number;
uri: string;
view_count: number;
durationMS: number;
isRGBD: 0 | 1;
zoom?: number | undefined;
depth_loc?: 0 | 2 | 1 | 3 | undefined;
Expand All @@ -155,6 +157,7 @@ export declare const insert_playlist_entry: z.ZodObject<{
crop_pos_y: number;
uri: string;
view_count: number;
durationMS: number;
isRGBD: 0 | 1;
zoom?: number | undefined;
depth_loc?: 0 | 2 | 1 | 3 | undefined;
Expand Down
2 changes: 1 addition & 1 deletion dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/classes/components_hologram.QuiltHologram.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Create a new Quilt Hologram
| `args.settings.columns` | `number` |
| `args.settings.crop_pos_x?` | `number` |
| `args.settings.crop_pos_y?` | `number` |
| `args.settings.duration?` | `number` |
| `args.settings.focus?` | `number` |
| `args.settings.rows` | `number` |
| `args.settings.tag?` | `string` |
Expand All @@ -55,6 +56,7 @@ Create a new Quilt Hologram
| `columns` | `number` |
| `crop_pos_x?` | `number` |
| `crop_pos_y?` | `number` |
| `duration?` | `number` |
| `focus?` | `number` |
| `rows` | `number` |
| `tag?` | `string` |
Expand Down
2 changes: 2 additions & 0 deletions docs/classes/components_hologram.RGBDHologram.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Create a new RGBD Hologram
| `args.settings.depth_inversion` | ``0`` \| ``1`` | `undefined` | Is the Depth inverted? 0 for false, 1 for true |
| `args.settings.depth_loc` | ``0`` \| ``2`` \| ``1`` \| ``3`` | `undefined` | Where are the holograms located? 0 Top 1 Bottom 2 Right 3 Left |
| `args.settings.depthiness` | `number` | `DEPTHINESS.range` | Depthiness can be a value between 0.1 and 2 |
| `args.settings.duration?` | `number` | `undefined` | - |
| `args.settings.focus?` | `number` | `undefined` | Controls the Focus of the hologram |
| `args.settings.rows?` | `number` | `undefined` | - |
| `args.settings.tag?` | `string` | `undefined` | - |
Expand All @@ -64,6 +65,7 @@ Create a new RGBD Hologram
| `depth_inversion` | ``0`` \| ``1`` | Is the Depth inverted? 0 for false, 1 for true |
| `depth_loc` | ``0`` \| ``2`` \| ``1`` \| ``3`` | Where are the holograms located? 0 Top 1 Bottom 2 Right 3 Left |
| `depthiness` | `number` | Depthiness can be a value between 0.1 and 2 |
| `duration?` | `number` | - |
| `focus?` | `number` | Controls the Focus of the hologram |
| `rows?` | `number` | - |
| `tag?` | `string` | - |
Expand Down
1 change: 1 addition & 0 deletions docs/classes/playlists_playlistItems.QuiltPlaylistItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ PlaylistItem.tag
| `depth_inversion?` | ``0`` \| ``1`` |
| `depth_loc?` | ``0`` \| ``2`` \| ``1`` \| ``3`` |
| `depthiness?` | `number` |
| `durationMS` | `number` |
| `focus` | `number` |
| `id` | `number` |
| `index` | `number` |
Expand Down
1 change: 1 addition & 0 deletions docs/classes/playlists_playlistItems.RGBDPlaylistItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ PlaylistItem.tag
| `depth_inversion?` | ``0`` \| ``1`` |
| `depth_loc?` | ``0`` \| ``2`` \| ``1`` \| ``3`` |
| `depthiness?` | `number` |
| `durationMS` | `number` |
| `focus` | `number` |
| `id` | `number` |
| `index` | `number` |
Expand Down
7 changes: 7 additions & 0 deletions docs/interfaces/playlists_playlistItems.PlaylistItemArgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [depth\_inversion](playlists_playlistItems.PlaylistItemArgs.md#depth_inversion)
- [depth\_loc](playlists_playlistItems.PlaylistItemArgs.md#depth_loc)
- [depthiness](playlists_playlistItems.PlaylistItemArgs.md#depthiness)
- [durationMS](playlists_playlistItems.PlaylistItemArgs.md#durationms)
- [id](playlists_playlistItems.PlaylistItemArgs.md#id)
- [index](playlists_playlistItems.PlaylistItemArgs.md#index)
- [isRGBD](playlists_playlistItems.PlaylistItemArgs.md#isrgbd)
Expand Down Expand Up @@ -77,6 +78,12 @@ ___

___

### durationMS

• **durationMS**: `number`

___

### id

• **id**: `string`
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/schemas_schema_hologram.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ ___

### QuiltHologramArgs

• `Const` **QuiltHologramArgs**: `ZodObject`<{ `aspect`: `ZodNumber` ; `columns`: `ZodNumber` ; `crop_pos_x`: `ZodOptional`<`ZodNumber`\> ; `crop_pos_y`: `ZodOptional`<`ZodNumber`\> ; `focus`: `ZodOptional`<`ZodNumber`\> ; `rows`: `ZodNumber` ; `tag`: `ZodOptional`<`ZodString`\> ; `viewCount`: `ZodNumber` ; `zoom`: `ZodOptional`<`ZodNumber`\> }, ``"strip"``, `ZodTypeAny`, { `aspect`: `number` ; `columns`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `focus?`: `number` ; `rows`: `number` ; `tag?`: `string` ; `viewCount`: `number` ; `zoom?`: `number` }, { `aspect`: `number` ; `columns`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `focus?`: `number` ; `rows`: `number` ; `tag?`: `string` ; `viewCount`: `number` ; `zoom?`: `number` }\>
• `Const` **QuiltHologramArgs**: `ZodObject`<{ `aspect`: `ZodNumber` ; `columns`: `ZodNumber` ; `crop_pos_x`: `ZodOptional`<`ZodNumber`\> ; `crop_pos_y`: `ZodOptional`<`ZodNumber`\> ; `duration`: `ZodOptional`<`ZodNumber`\> ; `focus`: `ZodOptional`<`ZodNumber`\> ; `rows`: `ZodNumber` ; `tag`: `ZodOptional`<`ZodString`\> ; `viewCount`: `ZodNumber` ; `zoom`: `ZodOptional`<`ZodNumber`\> }, ``"strip"``, `ZodTypeAny`, { `aspect`: `number` ; `columns`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `duration?`: `number` ; `focus?`: `number` ; `rows`: `number` ; `tag?`: `string` ; `viewCount`: `number` ; `zoom?`: `number` }, { `aspect`: `number` ; `columns`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `duration?`: `number` ; `focus?`: `number` ; `rows`: `number` ; `tag?`: `string` ; `viewCount`: `number` ; `zoom?`: `number` }\>

___

### RGBDHologramArgs

• `Const` **RGBDHologramArgs**: `ZodObject`<{ `aspect`: `ZodNumber` ; `chroma_depth`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\> ; `columns`: `ZodOptional`<`ZodNumber`\> ; `crop_pos_x`: `ZodOptional`<`ZodNumber`\> ; `crop_pos_y`: `ZodOptional`<`ZodNumber`\> ; `depth_cutoff`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``1``\>, `ZodLiteral`<``0``\>]\>\> ; `depth_inversion`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\> ; `depth_loc`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>, `ZodLiteral`<``2``\>, `ZodLiteral`<``3``\>]\> ; `depthiness`: `ZodEffects`<`ZodNumber`, `number`, `number`\> = DEPTHINESS.range; `focus`: `ZodOptional`<`ZodNumber`\> ; `rows`: `ZodOptional`<`ZodNumber`\> ; `tag`: `ZodOptional`<`ZodString`\> ; `zoom`: `ZodEffects`<`ZodNumber`, `number`, `number`\> = ZOOM.range }, ``"strip"``, `ZodTypeAny`, { `aspect`: `number` ; `chroma_depth`: ``0`` \| ``1`` ; `columns?`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `depth_cutoff?`: ``0`` \| ``1`` ; `depth_inversion`: ``0`` \| ``1`` ; `depth_loc`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness`: `number` = DEPTHINESS.range; `focus?`: `number` ; `rows?`: `number` ; `tag?`: `string` ; `zoom`: `number` = ZOOM.range }, { `aspect`: `number` ; `chroma_depth`: ``0`` \| ``1`` ; `columns?`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `depth_cutoff?`: ``0`` \| ``1`` ; `depth_inversion`: ``0`` \| ``1`` ; `depth_loc`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness`: `number` = DEPTHINESS.range; `focus?`: `number` ; `rows?`: `number` ; `tag?`: `string` ; `zoom`: `number` = ZOOM.range }\>
• `Const` **RGBDHologramArgs**: `ZodObject`<{ `aspect`: `ZodNumber` ; `chroma_depth`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\> ; `columns`: `ZodOptional`<`ZodNumber`\> ; `crop_pos_x`: `ZodOptional`<`ZodNumber`\> ; `crop_pos_y`: `ZodOptional`<`ZodNumber`\> ; `depth_cutoff`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``1``\>, `ZodLiteral`<``0``\>]\>\> ; `depth_inversion`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\> ; `depth_loc`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>, `ZodLiteral`<``2``\>, `ZodLiteral`<``3``\>]\> ; `depthiness`: `ZodEffects`<`ZodNumber`, `number`, `number`\> = DEPTHINESS.range; `duration`: `ZodOptional`<`ZodNumber`\> ; `focus`: `ZodOptional`<`ZodNumber`\> ; `rows`: `ZodOptional`<`ZodNumber`\> ; `tag`: `ZodOptional`<`ZodString`\> ; `zoom`: `ZodEffects`<`ZodNumber`, `number`, `number`\> = ZOOM.range }, ``"strip"``, `ZodTypeAny`, { `aspect`: `number` ; `chroma_depth`: ``0`` \| ``1`` ; `columns?`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `depth_cutoff?`: ``0`` \| ``1`` ; `depth_inversion`: ``0`` \| ``1`` ; `depth_loc`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness`: `number` = DEPTHINESS.range; `duration?`: `number` ; `focus?`: `number` ; `rows?`: `number` ; `tag?`: `string` ; `zoom`: `number` = ZOOM.range }, { `aspect`: `number` ; `chroma_depth`: ``0`` \| ``1`` ; `columns?`: `number` ; `crop_pos_x?`: `number` ; `crop_pos_y?`: `number` ; `depth_cutoff?`: ``0`` \| ``1`` ; `depth_inversion`: ``0`` \| ``1`` ; `depth_loc`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness`: `number` = DEPTHINESS.range; `duration?`: `number` ; `focus?`: `number` ; `rows?`: `number` ; `tag?`: `string` ; `zoom`: `number` = ZOOM.range }\>

___

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/schemas_schema_requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ___

### insert\_playlist\_entry

• `Const` **insert\_playlist\_entry**: `ZodObject`<{ `aspect`: `ZodNumber` ; `chroma_depth`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\>\> ; `cols`: `ZodNumber` ; `crop_pos_x`: `ZodNumber` ; `crop_pos_y`: `ZodNumber` ; `depth_inversion`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\>\> ; `depth_loc`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>, `ZodLiteral`<``2``\>, `ZodLiteral`<``3``\>]\>\> ; `depthiness`: `ZodOptional`<`ZodNumber`\> ; `focus`: `ZodNumber` ; `id`: `ZodNumber` ; `index`: `ZodNumber` ; `isRGBD`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\> ; `name`: `ZodString` ; `orchestration`: `ZodString` ; `rows`: `ZodNumber` ; `tag`: `ZodOptional`<`ZodString`\> ; `uri`: `ZodString` ; `view_count`: `ZodNumber` ; `zoom`: `ZodOptional`<`ZodNumber`\> }, ``"strip"``, `ZodTypeAny`, { `aspect`: `number` ; `chroma_depth?`: ``0`` \| ``1`` ; `cols`: `number` ; `crop_pos_x`: `number` ; `crop_pos_y`: `number` ; `depth_inversion?`: ``0`` \| ``1`` ; `depth_loc?`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness?`: `number` ; `focus`: `number` ; `id`: `number` ; `index`: `number` ; `isRGBD`: ``0`` \| ``1`` ; `name`: `string` ; `orchestration`: `string` ; `rows`: `number` ; `tag?`: `string` ; `uri`: `string` ; `view_count`: `number` ; `zoom?`: `number` }, { `aspect`: `number` ; `chroma_depth?`: ``0`` \| ``1`` ; `cols`: `number` ; `crop_pos_x`: `number` ; `crop_pos_y`: `number` ; `depth_inversion?`: ``0`` \| ``1`` ; `depth_loc?`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness?`: `number` ; `focus`: `number` ; `id`: `number` ; `index`: `number` ; `isRGBD`: ``0`` \| ``1`` ; `name`: `string` ; `orchestration`: `string` ; `rows`: `number` ; `tag?`: `string` ; `uri`: `string` ; `view_count`: `number` ; `zoom?`: `number` }\>
• `Const` **insert\_playlist\_entry**: `ZodObject`<{ `aspect`: `ZodNumber` ; `chroma_depth`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\>\> ; `cols`: `ZodNumber` ; `crop_pos_x`: `ZodNumber` ; `crop_pos_y`: `ZodNumber` ; `depth_inversion`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\>\> ; `depth_loc`: `ZodOptional`<`ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>, `ZodLiteral`<``2``\>, `ZodLiteral`<``3``\>]\>\> ; `depthiness`: `ZodOptional`<`ZodNumber`\> ; `durationMS`: `ZodNumber` ; `focus`: `ZodNumber` ; `id`: `ZodNumber` ; `index`: `ZodNumber` ; `isRGBD`: `ZodUnion`<[`ZodLiteral`<``0``\>, `ZodLiteral`<``1``\>]\> ; `name`: `ZodString` ; `orchestration`: `ZodString` ; `rows`: `ZodNumber` ; `tag`: `ZodOptional`<`ZodString`\> ; `uri`: `ZodString` ; `view_count`: `ZodNumber` ; `zoom`: `ZodOptional`<`ZodNumber`\> }, ``"strip"``, `ZodTypeAny`, { `aspect`: `number` ; `chroma_depth?`: ``0`` \| ``1`` ; `cols`: `number` ; `crop_pos_x`: `number` ; `crop_pos_y`: `number` ; `depth_inversion?`: ``0`` \| ``1`` ; `depth_loc?`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness?`: `number` ; `durationMS`: `number` ; `focus`: `number` ; `id`: `number` ; `index`: `number` ; `isRGBD`: ``0`` \| ``1`` ; `name`: `string` ; `orchestration`: `string` ; `rows`: `number` ; `tag?`: `string` ; `uri`: `string` ; `view_count`: `number` ; `zoom?`: `number` }, { `aspect`: `number` ; `chroma_depth?`: ``0`` \| ``1`` ; `cols`: `number` ; `crop_pos_x`: `number` ; `crop_pos_y`: `number` ; `depth_inversion?`: ``0`` \| ``1`` ; `depth_loc?`: ``0`` \| ``2`` \| ``1`` \| ``3`` ; `depthiness?`: `number` ; `durationMS`: `number` ; `focus`: `number` ; `id`: `number` ; `index`: `number` ; `isRGBD`: ``0`` \| ``1`` ; `name`: `string` ; `orchestration`: `string` ; `rows`: `number` ; `tag?`: `string` ; `uri`: `string` ; `view_count`: `number` ; `zoom?`: `number` }\>

___

Expand Down
3 changes: 3 additions & 0 deletions src/library/playlists/playlistItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface PlaylistItemArgs {
cols: number
aspect: number
view_count: number
durationMS: number
isRGBD: 0 | 1
depth_loc: 0 | 1 | 2 | 3
depth_inversion: 0 | 1
Expand Down Expand Up @@ -60,6 +61,7 @@ class PlaylistItem {
uri: this.hologram.uri,
rows: settings.rows,
cols: settings.columns,
durationMS: settings.duration ? settings.duration : 10_000,
focus: settings.focus ? settings.focus : 0,
zoom: settings.zoom ? settings.zoom : 1,
crop_pos_x: settings.crop_pos_x ? settings.crop_pos_x : 0,
Expand All @@ -83,6 +85,7 @@ class PlaylistItem {
focus: settings.focus ? settings.focus : 0,
aspect: settings.aspect,
view_count: 8 * 13,
durationMS: settings.duration ? settings.duration : 10_000,
isRGBD: 1,
depth_loc: settings.depth_loc,
crop_pos_x: settings.crop_pos_x ? settings.crop_pos_x : 0,
Expand Down
2 changes: 2 additions & 0 deletions src/library/schemas/schema.hologram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const QuiltHologramArgs = z.object({
crop_pos_y: z.number().optional(),
aspect: z.number(),
viewCount: z.number(),
duration: z.number().optional(),
focus: z.number().optional(),
zoom: z.number().optional(),
tag: z.string().optional(),
Expand All @@ -23,6 +24,7 @@ export const RGBDHologramArgs = z.object({
columns: z.number().optional(),
crop_pos_x: z.number().optional(),
crop_pos_y: z.number().optional(),
duration: z.number().optional(),
/**Aspect Ratio of the hologram,
* this should match the source image you provide, not the RGBD Pair */
aspect: z.number(),
Expand Down
1 change: 1 addition & 0 deletions src/library/schemas/schema.requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const insert_playlist_entry = z.object({
cols: z.number(),
aspect: z.number(),
view_count: z.number(),
durationMS: z.number(),
crop_pos_x: z.number(),
crop_pos_y: z.number(),
isRGBD: z.union([z.literal(0), z.literal(1)]),
Expand Down
6 changes: 6 additions & 0 deletions src/react-app/components/HologramForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export default function HologramForm({
setHologramUri(cleaned)
}}></input>
</label>
<label>
duration (seconds):
<input type="number" onChange={(e) => {setHologramSettings({...hologramSettings, duration: parseInt(e.target.value) * 1000})}} min={1} max={100}>

</input>
</label>
</div>

{/* Settings for RGBD holograms */}
Expand Down