<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding sound effect after I click a certain widget in Vuforia Studio</title>
    <link>https://community.ptc.com/t5/Vuforia-Studio/Adding-sound-effect-after-I-click-a-certain-widget/m-p/648730#M7535</link>
    <description>&lt;P&gt;use this Script, and associate this function to Click or another event of Widget.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$scope.mp3play=function() {&lt;/P&gt;
&lt;P&gt;var audioElement;&lt;BR /&gt;if(!audioElement) {&lt;BR /&gt;audioElement = document.createElement('audio');&lt;BR /&gt;audioElement.innerHTML = '&amp;lt;source src="' + 'app/resources/Uploaded/&lt;FONT color="#FF0000"&gt;File_Name.mp3&lt;/FONT&gt;'+ '" type="audio/mpeg" /&amp;gt;'&lt;BR /&gt;}&lt;BR /&gt;audioElement.play();&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File_Name.mp3 = name of file&amp;nbsp; saved into resource of project.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it has been tested and is working on&amp;nbsp; Tablet (Android &amp;amp; IOS) ,Mobile (Android &amp;amp; IOS), Hololens.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I HOPE TO HELP YOU&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 08:41:00 GMT</pubDate>
    <dc:creator>Giuseppe_Fiore</dc:creator>
    <dc:date>2020-02-12T08:41:00Z</dc:date>
    <item>
      <title>Adding sound effect after I click a certain widget</title>
      <link>https://community.ptc.com/t5/Vuforia-Studio/Adding-sound-effect-after-I-click-a-certain-widget/m-p/648688#M7534</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I want to create a function that when a button is click a certain sound effect will appear. Is there a js code for this?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 02:35:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Vuforia-Studio/Adding-sound-effect-after-I-click-a-certain-widget/m-p/648688#M7534</guid>
      <dc:creator>potatochips</dc:creator>
      <dc:date>2020-02-12T02:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sound effect after I click a certain widget</title>
      <link>https://community.ptc.com/t5/Vuforia-Studio/Adding-sound-effect-after-I-click-a-certain-widget/m-p/648730#M7535</link>
      <description>&lt;P&gt;use this Script, and associate this function to Click or another event of Widget.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$scope.mp3play=function() {&lt;/P&gt;
&lt;P&gt;var audioElement;&lt;BR /&gt;if(!audioElement) {&lt;BR /&gt;audioElement = document.createElement('audio');&lt;BR /&gt;audioElement.innerHTML = '&amp;lt;source src="' + 'app/resources/Uploaded/&lt;FONT color="#FF0000"&gt;File_Name.mp3&lt;/FONT&gt;'+ '" type="audio/mpeg" /&amp;gt;'&lt;BR /&gt;}&lt;BR /&gt;audioElement.play();&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File_Name.mp3 = name of file&amp;nbsp; saved into resource of project.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it has been tested and is working on&amp;nbsp; Tablet (Android &amp;amp; IOS) ,Mobile (Android &amp;amp; IOS), Hololens.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I HOPE TO HELP YOU&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 08:41:00 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Vuforia-Studio/Adding-sound-effect-after-I-click-a-certain-widget/m-p/648730#M7535</guid>
      <dc:creator>Giuseppe_Fiore</dc:creator>
      <dc:date>2020-02-12T08:41:00Z</dc:date>
    </item>
  </channel>
</rss>

