Files and layout
What files the API takes, where the QR code goes and how the hologram plays.
Files
| File | Types | Limits |
|---|---|---|
video (required) | video/mp4, video/quicktime (mov), video/webm | Up to 100 MB and 60 seconds |
image | image/jpeg, image/png, image/webp | Up to 20 MB, at least 480 px on its short side |
The video should show one person, ideally against a calm background and filmed in portrait. Meishi cuts the person out of the background, so the hologram looks like they stand on the print. Send "background": "keep" to show the whole video instead.
The image is what gets printed and what the phone's camera looks for. Pictures with detail and contrast track best; large flat areas of one colour track poorly.
No image? If your key has a label (your own printed template, such as a sticker or a product label, which support sets up for you), leave image out and the label is used. Without a label, a request without an image answers 422 image_required.
Where the QR code goes
qr places the QR plate as fractions of the image: x and y are its top-left corner, size its width.
{
"type": "hologram",
"video": { "contentType": "video/mp4", "size": 24000000 },
"image": { "contentType": "image/jpeg", "size": 812345 },
"qr": { "x": 0.05, "y": 0.72, "size": 0.2 }
}- Without
qr, the plate sits at the bottom right. - The plate is always kept inside the image, and raised to the smallest size that still scans.
- The plate includes the code's quiet zone, so leave no other margin around it.
How the hologram stands and plays
| Field | Values | Default |
|---|---|---|
videoPosition | label: stands on the printed image. above: floats above it. | label |
playback | autoplay: plays as soon as the image is found. tap: plays once per tap. tapLoop: starts looping on the first tap. | autoplay |
background | remove: the person is cut out, so they stand on the print. keep: the whole video shows, background and all. | remove |
Your own values
name(up to 120 characters) is shown in the Meishi portal.orderReference(up to 100) comes back with the experience and every webhook, and filters the list.metadataholds your own string values (up to 200 characters each), returned as they are.endsAt(Unix seconds) is when it stops showing; see Managing experiences.