{"id":1282,"date":"2018-10-24T22:23:24","date_gmt":"2018-10-24T22:23:24","guid":{"rendered":"https:\/\/lab.florianschwarz.net\/PennController\/?post_type=yada_wiki&#038;p=1282"},"modified":"2018-11-03T00:28:14","modified_gmt":"2018-11-03T00:28:14","slug":"voicerecorder-settings-once","status":"publish","type":"yada_wiki","link":"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/voicerecorder-settings-once\/","title":{"rendered":"voicerecorder.settings.once"},"content":{"rendered":"<p class='command-format'><code>getVoiceRecorder(id).settings.once()<\/code><\/p>\n<p>Disables the button to record after the first recording. You can still record using the action command <code>record<\/code>.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>[js highlight=&#8221;5&#8243; try=&#8221;data&#8221;]PennController.InitiateRecorder(&#8220;https:\/\/myserver\/upload.php&#8221;);<\/p>\n<p>PennController(<br \/>\n    newVoiceRecorder(&#8220;recorder&#8221;)<br \/>\n        .settings.once()<br \/>\n        .print()<br \/>\n        .wait()<br \/>\n        .play()<br \/>\n        .wait(&#8220;playback&#8221;)<br \/>\n);[\/js]<\/p>\n<p>Adds a recording and a playback button to the page, and when the recording button is clicked for the second time (i.e., recording is over) the buttons become disabled and the audio automatically plays back.<\/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":[13,5,4,14,31],"wiki_tags":[],"class_list":["post-1282","yada_wiki","type-yada_wiki","status-publish","hentry","wiki_cats-command","wiki_cats-documentation","wiki_cats-element","wiki_cats-settings-command","wiki_cats-voicerecorder-element"],"_links":{"self":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1282","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=1282"}],"version-history":[{"count":3,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1282\/revisions"}],"predecessor-version":[{"id":1678,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1282\/revisions\/1678"}],"wp:attachment":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/media?parent=1282"}],"wp:term":[{"taxonomy":"wiki_cats","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_cats?post=1282"},{"taxonomy":"wiki_tags","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_tags?post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}