Youtube elements let you add youtube videos to the page using their reference code (what comes after watch?v=
in the video’s URL):
Creation:
newYoutube("myVideo", "aFPtc8BVdJk")
PennController is set to preload all resources, which means the trial will not start until the youtube video is stored in the browser’s cache.
Note that Youtube elements use Youtube’s IFrame player API. Support might vary across browsers (e.g., preloading seems more efficient on Firefox than on Chrome).
By default, the Youtube controls of the videos (buttons, progress bar, …) are not displayed. You can tell PennController to show the controls by adding a third parameter upon creation:
newYoutube("myVideo", "aFPtc8BVdJk", "show controls")
This setting cannot be changed by a command as of beta 0.3.
Actions
[yadawiki-list category=”Action command,Youtube element”]
Settings
[yadawiki-list category=”Settings command,Youtube element”]
Tests
[yadawiki-list category=”Test command,Youtube element”]
Index
- Installing PennController
- Ontology
- Aesthetics
- Preloading resources
- ZIPped resources
- Spreadsheet (CSV)
- Canvas creation
- Setup for audio recordings collection
- Commands by element categories
- Standard Element Commands
- Audio element
- Button element
- Canvas element
- Function element
- Html element
- Image element
- Key element
- Scale element
- Selector element
- Text element
- TextInput element
- Tooltip element
- Timer element
- Var element
- Video element
- VoiceRecorder element
- Youtube element
- Special clear command
- Special end command
- Global PennController Commands
- PennController
- PennController.AddHost
- PennController.AddTable
- PennController.CheckPreloaded
- PennController.DownloadVoiceButton
- PennController.FeedItems
- PennController.Footer
- PennController.GetTable
- PennController.GetURLParameter
- PennController.Header
- PennController.InitiateRecorder
- PennController.PreloadZip
- PennController.ResetPrefix
- PennController.Template