{"id":1071,"date":"2018-10-24T20:32:34","date_gmt":"2018-10-24T20:32:34","guid":{"rendered":"https:\/\/lab.florianschwarz.net\/PennController\/?post_type=yada_wiki&#038;p=1071"},"modified":"2018-10-30T16:07:42","modified_gmt":"2018-10-30T16:07:42","slug":"audio-stop","status":"publish","type":"yada_wiki","link":"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/audio-stop\/","title":{"rendered":"audio.stop"},"content":{"rendered":"<p class='command-format'><code>getAudio(id).stop()<\/code> <em>(since beta 0.3)<\/em><\/p>\n<p>Stops the playback of the audio and goes back to the start of it, making it impossible to resume from the current position later.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>[js highlight=&#8221;9&#8243; try=&#8221;true&#8221;]newAudio(&#8220;sentence&#8221;, &#8220;test.mp3&#8221;)<br \/>\n    .play()<br \/>\n,<br \/>\nnewTimer(&#8220;preview&#8221;, 750)<br \/>\n    .start()<br \/>\n    .wait()<br \/>\n,<br \/>\ngetAudio(&#8220;sentence&#8221;)<br \/>\n    .stop()[\/js]<\/p>\n<p>Starts playing the file <em>test.mp3<\/em> and stops it after 750ms. Calling <a href=\"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/audio-play\/\" class=\"wikilink-published\">play<\/a> later on would <strong>not<\/strong> resume playback from there, but start all over from the beginning.<\/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":[11,16,13,5,4],"wiki_tags":[],"class_list":["post-1071","yada_wiki","type-yada_wiki","status-publish","hentry","wiki_cats-action-command","wiki_cats-audio-element","wiki_cats-command","wiki_cats-documentation","wiki_cats-element"],"_links":{"self":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1071","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=1071"}],"version-history":[{"count":4,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1071\/revisions"}],"predecessor-version":[{"id":1557,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1071\/revisions\/1557"}],"wp:attachment":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/media?parent=1071"}],"wp:term":[{"taxonomy":"wiki_cats","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_cats?post=1071"},{"taxonomy":"wiki_tags","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_tags?post=1071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}