Before, to create an answer that gave credit for watching a video, say a video named “video1”, one had to write this moderately complex DoenetML:
<p>Video credit achieved:
<number displayDecimals="1">$video1.fractionWatched*100</number>%</p>
<answer hide name="video1Credit">
<award credit="$video1.fractionWatched">
<when>true</when>
</award>
</answer>
<callAction triggerWith="$video1" target="$video1Credit" actionName="submitAnswer" />
Now, I’m creating a videoWatched answer type so now all it takes to grade students on watching a video is to add:
<answer type="videoWatched" video="$video1" />
If you want a different label that “Video credit achieved”, you can specify the attribute videoCreditLabel.
Does that seem like a reasonable syntax?
If we have that, do we also want the video snippet requested earlier?