Skip to content

Commit b45dece

Browse files
committed
clarify VD drafty description
1 parent 3b377e6 commit b45dece

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎docs/drafty.md‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ The `VC` may also be represented as a format `"fmt": [{"len": 1, "tp": "VC"}]` w
326326
"tp": "VD",
327327
"data": {
328328
"mime": "video/webm",
329-
"val": "Rt53jUU...iVBORw0KGgoA==",
330329
"ref": "/v0/file/s/abcdef12345.webm",
331-
"preview": "/v0/file/s/abcdef54321.jpeg",
330+
"preview": "AsTrsU...k86n00Ggo=="
331+
"preref": "/v0/file/s/abcdef54321.jpeg",
332332
"width": 640,
333333
"height": 360,
334334
"duration": 32000,
@@ -339,8 +339,10 @@ The `VC` may also be represented as a format `"fmt": [{"len": 1, "tp": "VC"}]` w
339339
```
340340
* `mime`: data type, such as 'video/webm'.
341341
* `val`: optional in-band video data: base64-encoded video bits, usually not present (null).
342-
* `ref`: optional reference to out-of-band video data. Either `val` or `ref` must be present.
343-
* `preview`: optional screen from the video as a reference to an image or base64-encoded image bits.
342+
* `ref`: optional reference to an out-of-band video data. Either `val` or `ref` must be present.
343+
* `preview`: optional base64-encoded screencapture (image) from the video.
344+
* `preref`: optional reference to an out-of-band screencapture (image) from the video.
345+
* `premime`: optional data type of the screencapture image; if missing should be assumed to be 'image/jpeg'.
344346
* `width`, `height`: linear dimensions of the video in pixels.
345347
* `duration`: duration of the video in milliseconds.
346348
* `name`: optional name of the original file.

0 commit comments

Comments
 (0)