Audio elements let you add audio streams to the page:
Creation:
newAudio("myAudio", "http://myserver/audio.mp3")
Creates an <audio>
tag in the cache.
By default, PennController is set to preload all resources, which means the trial will not start until the audio stream is stored in the browser’s cache.
You can omit the host URL if:
– you have already added it to the list of host URLs with the command PennController.AddHost.
– or, the audio file is contained in a Zip file (see the Using Zip files page)
newAudio("myAudio", "audio.mp3")
You can take a look at the w3schools HTML5 Audio page to learn more about audio support (as of March 2019, only WAV files appear to be supported across the board in IE, Firefox, Chrome, Safari and Opera).
Actions
[yadawiki-list category=”Audio element,Action command”]
Settings
[yadawiki-list category=”Audio element,Settings command”]
Tests
[yadawiki-list category=”Audio element,Test command”]
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