-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finish mixin docs, deprecated frame docs
- Loading branch information
Kim Scott
committed
Nov 3, 2020
1 parent
d51e344
commit fb2aebd
Showing
20 changed files
with
608 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _exp-lookit-change-detection: | ||
|
||
exp-lookit-change-detection | ||
============================================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,11 @@ | ||
exp-lookit-composite-video-trial | ||
============================================== | ||
|
||
Composite video display for typical looking measures trials (e.g. preferential looking, | ||
looking time). (Previously called exp-lookit-video.) | ||
This frame is deprecated and will not be included in release 2.x. | ||
Please see `the old docs <https://lookit.github.io/lookit-frameplayer-docs/classes/Exp-lookit-composite-video-trial.html>`__. | ||
|
||
Overview of phases | ||
Consider instead | ||
------------------ | ||
|
||
The trial consists of four phases, each of which is optional. | ||
|
||
1. **Announcement:** The audio in audioSources is played while the attnSources video is played centrally, looping as needed. This lasts for announceLength seconds or the duration of the audio, whichever is longer. To skip this phase, set announceLength to 0 and do not provide audioSources. | ||
|
||
2. **Intro:** The introSources video is played centrally until it ends. To skip this phase, do not provide introSources. | ||
|
||
3. **Calibration:** The video in calibrationVideoSources is played (looping as needed) in each of the locations specified in calibrationPositions in turn, remaining in each position for calibrationLength ms. At the start of each position the audio in calibrationAudioSources is played once. (Audio will be paused and restarted if it is longer than calibrationLength.) Set calibrationLength to 0 to skip calibration. | ||
|
||
4. **Test:** The video in sources and audio in musicSources (optional) are played until either: testLength seconds have elapsed (with video looping if needed), or the video has been played testCount times. If testLength is set, it overrides testCount - for example if testCount is 1 and testLength is 30, a 10-second video will be played 3 times. If the participant pauses the study during the test phase, then after restarting the trial, the video in altSources will be used again (defaulting to the same video if altSources is not provided). To skip this phase, do not provide sources. | ||
|
||
Display | ||
------- | ||
|
||
This frame is displayed fullscreen. If the previous frame is not fullscreen, then that frame | ||
needs to include a manual "next" button so that there's a user interaction | ||
event to trigger fullscreen mode. (Browsers don't allow us to switch to fullscreen mode | ||
without a user event.) | ||
|
||
|
||
Specifying media locations | ||
--------------------------- | ||
|
||
For any parameters that expect a list of audio/video sources, you have two options: | ||
|
||
1. You can provide a list of src/type pairs with full paths, like this: | ||
|
||
.. code:: javascript | ||
[ | ||
{ | ||
'src': 'http://.../video1.mp4', | ||
'type': 'video/mp4' | ||
}, | ||
{ | ||
'src': 'http://.../video1.webm', | ||
'type': 'video/webm' | ||
} | ||
] | ||
2. You can provide a single string 'stub', which will be expanded based on the parameter ``baseDir`` and the media types expected (either ``audioTypes`` or | ||
``videoTypes`` as appropriate). | ||
|
||
For example, if you provide the audio source | ||
```intro```, ``baseDir`` is ``https://mystimuli.org/mystudy/``, and ``audioTypes`` is ``['mp3', 'ogg']``, then this | ||
will be expanded to: | ||
|
||
.. code:: javascript | ||
[ | ||
{ | ||
src: 'https://mystimuli.org/mystudy/mp3/intro.mp3', | ||
type: 'audio/mp3' | ||
}, | ||
{ | ||
src: 'https://mystimuli.org/mystudy/ogg/intro.ogg', | ||
type: 'audio/ogg' | ||
} | ||
] | ||
This allows you to simplify your JSON document a bit and also easily switch to a | ||
new version of your stimuli without changing every URL. You can mix source objects with | ||
full URLs and those using stubs within the same directory. However, any stimuli | ||
specified using stubs MUST be | ||
organized as expected under ``baseDir/MEDIATYPE/filename.MEDIATYPE``. | ||
|
||
|
||
- :ref:`exp-lookit-video` to play a video and optional audio, with more configurability & better timing precision for the recording | ||
- :ref:`exp-lookit-calibration` to show a calibration stimulus at specific locations, again with more configurability and better timing precision |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
exp-lookit-dialogue-page | ||
============================================== | ||
|
||
This frame is deprecated and will not be included in release 2.x. | ||
Please see `the old docs <https://lookit.github.io/lookit-frameplayer-docs/classes/Exp-lookit-dialogue-page.html>`__. | ||
|
||
Consider instead | ||
------------------ | ||
|
||
- :ref:`exp-lookit-images-audio`, which should be able to do everything this frame can, but more reliably and with more options! |
11 changes: 11 additions & 0 deletions
11
app/components/exp-lookit-geometry-alternation-open/doc.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
exp-lookit-geometry-alternation-open | ||
============================================== | ||
|
||
This frame is deprecated and will not be included in release 2.x. | ||
Please see `the old docs <https://lookit.github.io/lookit-frameplayer-docs/classes/Exp-lookit-geometry-alternation-open.html>`__. | ||
|
||
Consider instead | ||
------------------ | ||
|
||
The more general-purpose :ref:`exp-lookit-change-detection` frame which shows streams of images on each side, or | ||
:ref:`exp-lookit-video` if you'd rather provide premade videos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
exp-lookit-geometry-alternation | ||
============================================== | ||
|
||
This frame is deprecated and will not be included in release 2.x. | ||
Please see `the old docs <https://lookit.github.io/lookit-frameplayer-docs/classes/Exp-lookit-geometry-alternation.html>`__. | ||
|
||
Consider instead | ||
------------------ | ||
|
||
The more general-purpose :ref:`exp-lookit-change-detection` frame which shows streams of images on each side, or | ||
:ref:`exp-lookit-video` if you'd rather provide premade videos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
exp-lookit-preferential-looking | ||
============================================== | ||
|
||
This frame is deprecated and will not be included in release 2.x. | ||
Please see `the old docs <https://lookit.github.io/lookit-frameplayer-docs/classes/Exp-lookit-preferential-looking.html>`__. | ||
|
||
|
||
Consider instead | ||
------------------ | ||
|
||
- :ref:`exp-lookit-video` to play a video and optional audio, with more configurability & better timing precision for the recording | ||
- :ref:`exp-lookit-calibration` to show a calibration stimulus at specific locations, again with more configurability and better timing precision |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _exp-lookit-stimuli-preview: | ||
|
||
exp-lookit-stimuli-preview | ||
============================================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
exp-lookit-story-page | ||
============================================== | ||
|
||
This frame is deprecated and will not be included in release 2.x. | ||
Please see `the old docs <https://lookit.github.io/lookit-frameplayer-docs/classes/Exp-lookit-story-page.html>`__. | ||
|
||
Consider instead | ||
------------------ | ||
|
||
- :ref:`exp-lookit-images-audio`, which should be able to do everything this frame can, but more reliably and with more options! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _exp-video-webcam-display: | ||
|
||
exp-lookit-webcam-display | ||
============================================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.