videoAnnotation
Respondents react to a video as it plays. Three styles cover continuous sentiment (a dial dragged while watching), tap-react (emoji buttons tapped at any moment), and post-section ratings (rate predefined segments after the video ends).
What videoAnnotation is
videoAnnotation shows the respondent a video and collects
time-anchored reactions. Three styles cover the everyday
research patterns:
| Style | UI | Stored data |
|---|---|---|
dial (default) | A continuous sentiment slider the respondent drags while watching | trace: [{t_ms, value}] — value −100 to +100, sampled every sample seconds |
tap_react | Emoji reaction buttons that can be tapped at any moment during playback | reactions: [{t_ms, code, label}] |
post_section | Predefined sections; respondent rates each after watching | rows: { sectionCode: "1"–"5" } |
Move the dial up or down as you watch — high when you like what you see, low when you don't.
The default dial style: video on the left, sentiment slider on
the right. The respondent drags the slider any direction while
the video plays — values go from −100 to +100, sampled every
sample seconds and stored as a time-stamped trace.
Properties
| Property | Values | Notes |
|---|---|---|
qid | string | Required. Unique within the survey. |
type | videoAnnotation | Required. |
title, text, instruction | renderable | Visible content. |
required | True | False | Default True. |
default.errors | True | False | custom string | Default True. |
validation | code block | Python; call fail() to reject. |
readonly | True | False | Default False. |
visibility | show | hide | Default show. |
video | URL | Required. Video file to display. |
style | dial | tap_react | post_section | Default dial. |
reactions | inline coded list | Required for tap_react, ignored on other styles. Defines the reaction buttons. Allowed reaction codes: like, dislike, neutral, note. |
sections | inline coded list | Required for post_section, ignored on other styles. Defines rated segments with start: and end: (seconds). |
sample | number | dial only. Trace sample interval in seconds. Default 0.5. |
min | integer | tap_react only. Minimum reactions tapped. |
max | integer | tap_react only. Maximum reactions tapped. |
if | expression | Visibility / activation condition. |
options, options.from, group, group.order, scale, scale.from, decimal, decimal.places, passage, annotations, label.prefix, label.suffix, input.source, input.size.Per-reaction entry properties (tap_react)
| Property | Notes |
|---|---|
emoji | The emoji character displayed on the button. Important: the code is the analyst key (like, dislike, etc.), NOT the emoji character — keep them separate so analysts get clean codes in exports. |
Allowed reaction codes are constrained: only like, dislike,
neutral, note. Pick from those four; the code becomes the
column suffix in export.
Per-section entry properties (post_section)
| Property | Notes |
|---|---|
start | Start time of the segment in seconds. Required. |
end | End time in seconds. Required. |
Examples
Dial — continuous sentiment trace
- qid: QAdSentiment
type: videoAnnotation
text: |
Move the dial up or down as you watch — high when you like
what you see, low when you don't.
video: https://cdn.example.com/ads/spot-30s.mp4
sample: 0.25
sample: 0.25 records the dial position every 250 ms. The
respondent drags a slider while the video plays; storage shape:
{
"trace": [
{ "t_ms": 0, "value": 0 },
{ "t_ms": 250, "value": 25 },
{ "t_ms": 500, "value": 60 },
{ "t_ms": 750, "value": 75 }
]
}
Useful for second-by-second response curves — typically post-processed into average traces or peak / trough detection.
Tap-react — emoji reactions during playback
- qid: QAdReactions
type: videoAnnotation
style: tap_react
text: Tap a button whenever you have a reaction. Tap as often as you like.
video: https://cdn.example.com/ads/spot-30s.mp4
reactions:
like: Like
emoji: 👍
dislike: Dislike
emoji: 👎
neutral: Neutral
emoji: 😐
note: Note
emoji: 💡
min: 3
Four buttons sit beneath the video. Each tap records the moment in milliseconds plus the reaction code:
{
"reactions": [
{ "t_ms": 1250, "code": "like", "label": "Like" },
{ "t_ms": 4800, "code": "neutral", "label": "Neutral" },
{ "t_ms": 12300, "code": "like", "label": "Like" }
]
}
The reaction code (e.g. like) is the analyst key — that’s
what shows up in the export column suffix. The emoji is the
visible icon for the respondent only.
Tap a button whenever you have a reaction. Tap as often as you like.
Four reaction buttons sit beneath the video; previously-tapped reactions appear as small markers across the timeline at the moment they were tapped.
Post-section — rate predefined segments after watching
- qid: QSegmentRating
type: videoAnnotation
style: post_section
text: After watching, rate each section of the video on appeal.
video: https://cdn.example.com/ads/spot-30s.mp4
sections:
intro: Intro
start: 0
end: 10
msg: Main message
start: 10
end: 22
cta: Closing call-to-action
start: 22
end: 30
Three predefined sections. After the video ends, the respondent
sees three labelled rows and gives each a 1–5 rating.
Storage:
{
"rows": {
"intro": "4",
"msg": "5",
"cta": "3"
}
}
After watching, rate each section of the video on appeal.
The video plays first; once it finishes, three section rows
appear with their start–end timecodes and a 1–5 scale.
Methods & accessors
| Expression | Returns | Meaning |
|---|---|---|
Q.answered | bool | True once the respondent meets the completion criteria for the active style (see below). |
Q.notAnswered | bool | Inverse. |
Q.reset() | — | Clear the trace / reactions / ratings. |
Completion criteria per style
The runtime enforces a stricter “answered” definition than just “any interaction.” Each style has its own completion bar:
| Style | Q.answered flips True when… |
|---|---|
dial | The video has been watched to the end. Interim dial movement isn’t enough on its own. |
tap_react | The video has been watched to the end. If min: is set, the respondent must also have tapped at least min reactions. |
post_section | Every section listed in sections: has a rating. |
required: False doesn’t bypass them. Unlike most other question types, where required: False lets the respondent skip the question, videoAnnotation’s shell holds Next disabled until the completion criteria above are met. If you need a video the respondent can skip past, use visibility: hide for hidden mode or wrap it in a flow-level - if: so the question only appears when wanted.The trace, reaction list, and section ratings are stored in the runtime answer state but aren’t surfaced through canonical question-level accessors yet — analysis happens downstream from the export.
Export
| Style | Export shape |
|---|---|
dial | One row per sample tick in long format: t_ms, value. |
tap_react | One row per reaction in long format: t_ms, code, label. |
post_section | One column per section: qidIntro, qidMsg, qidCta carrying the rating. |
For long-format styles see Long format.
See also
- imageAnnotation — annotate spots on a still image
- textAnnotation — annotate words in a passage
- Long format — export shape for trace / reaction lists