{"id":1075,"date":"2018-10-24T20:33:57","date_gmt":"2018-10-24T20:33:57","guid":{"rendered":"https:\/\/lab.florianschwarz.net\/PennController\/?post_type=yada_wiki&#038;p=1075"},"modified":"2018-10-29T22:17:46","modified_gmt":"2018-10-29T22:17:46","slug":"audio-settings-once","status":"publish","type":"yada_wiki","link":"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/audio-settings-once\/","title":{"rendered":"audio.settings.once"},"content":{"rendered":"<p class='command-format'><code>getAudio(id).settings.once()<\/code><\/p>\n<p>Disables the buttons to play\/pause the audio right after its first playing (the audio can still be played using the action <code>play<\/code>).<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>[js highlight=&#8221;5&#8243; try=&#8221;true&#8221;]newText(&#8220;instructions&#8221;, &#8220;Please listen to the audio below&#8221;)<br \/>\n    .print()<br \/>\n,<br \/>\nnewAudio(&#8220;sentence&#8221;, &#8220;test.mp3&#8221;)<br \/>\n    .settings.once()<br \/>\n    .print()<br \/>\n    .wait()<br \/>\n,<br \/>\nnewButton(&#8220;validation&#8221;, &#8220;Validate&#8221;)<br \/>\n    .print()<br \/>\n    .wait()[\/js]<\/p>\n<p>Adds some instruction text to the screen and control buttons below the text. After the audio gets played, the control buttons are grayed out, and a <em>Validate<\/em> button appears below them.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"wiki_cats":[16,13,5,4,14],"wiki_tags":[],"class_list":["post-1075","yada_wiki","type-yada_wiki","status-publish","hentry","wiki_cats-audio-element","wiki_cats-command","wiki_cats-documentation","wiki_cats-element","wiki_cats-settings-command"],"_links":{"self":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki"}],"about":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/types\/yada_wiki"}],"author":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/comments?post=1075"}],"version-history":[{"count":3,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1075\/revisions"}],"predecessor-version":[{"id":1475,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1075\/revisions\/1475"}],"wp:attachment":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/media?parent=1075"}],"wp:term":[{"taxonomy":"wiki_cats","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_cats?post=1075"},{"taxonomy":"wiki_tags","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_tags?post=1075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}