ExpVideoPhysics Class
Test trial for the 'Your baby the physicist' study: audio instructions, intro video, and test video, with webcam recording.
Item Index
Properties
Events
Methods
exitFullscreen
()
serializeContent
-
videosShown
-
eventTimings
-
videoID
Parameters captured and sent to the server
Parameters:
Returns:
The payload sent to the server
showFullscreen
()
Properties
altSources
Array
Array of objects specifying video src and type for alternate test video, as for sources.
Default: []
Sub-properties:
attnSources
Array
Array of objects specifying attention-grabber video src and type, as for sources.
Default: []
Sub-properties:
audioSources
Array
List of objects specifying music audio src and type, as for audioSources.
Default: []
Sub-properties:
audioSources
Array
List of objects specifying intro announcement src and type.
Example: [{'src': 'http://.../audio1.mp3', 'type': 'audio/mp3'}, {'src': 'http://.../audio1.ogg', 'type': 'audio/ogg'}]
Default: []
Sub-properties:
autoforwardOnEnd
Boolean
Whether to automatically advance to the next frame when video is complete. Generally leave this true, since controls will be hidden for fullscreen videos.
Default: true
fullScreenElementId
String
introSources
Array
Array of objects specifying intro video src and type, as for sources.
Default: []
Sub-properties:
isLast
Boolean
Whether this is the last exp-physics-video frame in the group, before moving to a different frame type. (If so, play only the intro audio, no actual tests.)
Default: false
sources
Array
Array of objects specifying video src and type for test video (these should be the same video, but multiple sources--e.g. mp4 and webm--are generally needed for cross-browser support). Example value:
[{'src': 'http://.../video1.mp4', 'type': 'video/mp4'}, {'src': 'http://.../video1.webm', 'type': 'video/webm'}]
Default: []
Sub-properties:
Events
nextFrame
Move to next frame