<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - audio - toggle on/off multiple sounds even when they are not currently playing</title>
    <link>https://forums.adobe.com/community/edge_animate?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 28 Mar 2014 15:46:43 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-03-28T15:46:43Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: audio - toggle on/off multiple sounds even when they are not currently playing</title>
      <link>https://forums.adobe.com/message/6250749?tstart=0#6250749</link>
      <description>&lt;!-- [DocumentBodyStart:62cd7d11-5be5-412e-b696-74527bcd021c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;didn't have the time to test this code yet. &lt;/p&gt;&lt;p&gt;but it should work. &lt;/p&gt;&lt;p&gt;Html5 audio can not be accessed by class, it can only be accessed by id. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;so i made this code &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;$( "audio" ).each(function() {&lt;/p&gt;&lt;p&gt;var a = $(this).attr("id");&lt;/p&gt;&lt;p&gt;var audioPlayer = document.getElementById(a)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; audioPlayer.pause();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; audioPlayer.currentTime = 0;&lt;/p&gt;&lt;p&gt;});&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;this will find the id of the audios and pause them and reset the time to 0 &lt;/p&gt;&lt;p&gt;( not really a way to officially stop audio )&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;or you van just mute it with this code &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;$( "audio" ).each(function() {&lt;/p&gt;&lt;p&gt;var a = $(this).attr("id");&lt;/p&gt;&lt;p&gt;var audioPlayer = document.getElementById(a)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; audioPlayer.muted = true;&lt;/p&gt;&lt;p&gt;});&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;- Rob&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:62cd7d11-5be5-412e-b696-74527bcd021c] --&gt;&lt;img src='/beacon?t=1415898867034' /&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:46:17 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6250749?tstart=0#6250749</guid>
      <dc:date>2014-03-28T15:46:17Z</dc:date>
      <clearspace:dateToText>7 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>audio - toggle on/off multiple sounds even when they are not currently playing</title>
      <link>https://forums.adobe.com/message/6250445?tstart=0#6250445</link>
      <description>&lt;!-- [DocumentBodyStart:f67ac98e-6fe3-494a-a0fd-20637600fb27] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am wondering if there is a way to stop toggle all sounds even if they are not playing. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I mean by that is I have several sound files that play one at a time when a slide comes in. I can toggle on/of the current sound but what if I want to toggle all sounds on/off in the compostion even if they are not playing so that when I go to next slide it will be on or off depending what was chosen on the previous slide?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;One of the problem would be that I do not want all sounds to be turned back on at the same time but only the current one but I still want to be able to turn off all the sounds if the user decides he does not want to hear sound while at the same time I want the sounds to load automatically on each slide if he has decided to have sound. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this makes sense.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f67ac98e-6fe3-494a-a0fd-20637600fb27] --&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:31:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6250445?tstart=0#6250445</guid>
      <dc:date>2014-03-28T14:31:00Z</dc:date>
      <clearspace:dateToText>7 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

