<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Play audio file on click of UI component</title><link>https://community.appian.com/discussions/f/general/13398/play-audio-file-on-click-of-ui-component</link><description>Hi All, 
 Thanks in advance! 
 How to play an uploaded audio file inside a SAIL UI . 
 appreciate your suggestion. 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/109910?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 04:49:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:235ccff6-6d45-4494-aae7-f276b34ebaaf</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;&lt;span&gt;a!videoField() and&amp;nbsp;a!documentViewerField() both works file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I just figured out the URL to doc could be as following.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;https://&amp;lt;yourappiancloudurl&amp;gt;/suite/doc/&amp;lt;docId&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/109909?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 04:13:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17208618-1eff-4b74-8867-7c75a2649332</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;How do you get the absolute URL to Appian KC document?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/109796?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 10:08:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71fdfe02-db8c-4058-b847-a486d711da54</guid><dc:creator>abhishek_jain</dc:creator><description>&lt;p&gt;The above discussed codes are not working in my environment.&lt;/p&gt;
&lt;p&gt;But, this approach is working:-&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt; a!documentViewerField(&lt;br /&gt; label: &amp;quot;Document Viewer&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;/p&gt;
&lt;p&gt;/*constant for mp3 document which is uploaded in a Folder*/&lt;br /&gt; document: cons!QY_CONS___MP3DOC,&lt;br /&gt; height: &amp;quot;SHORT&amp;quot;&lt;br /&gt; )&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/60714?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 19:03:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40870d3f-dec1-40d1-b2e1-83e9fe1c15d6</guid><dc:creator>rajeshr501</dc:creator><description>Hi Dastagiri,&lt;br /&gt;
i will try this and let you know.&lt;br /&gt;
Thanks&lt;br /&gt;
Raj&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/60712?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 18:23:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57d29aba-56e7-4373-a4b7-8c08558504f6</guid><dc:creator>Mike Schmitt</dc:creator><description>I can verify this approach works.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/60700?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 15:42:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ed55dbc-c8df-478d-96e8-70f82290c93b</guid><dc:creator>Dastagiri Dudekula</dc:creator><description>&lt;p&gt;&lt;a href="/members/rajeshr501"&gt;rajeshr501&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please find the code. This works for sure.&lt;/p&gt;
&lt;p&gt;Upload the audio (In appian its document).&lt;/p&gt;
&lt;p&gt;Get the audio file id (document id)&lt;/p&gt;
&lt;p&gt;Pass the document id to be played.&lt;/p&gt;
&lt;p&gt;Configuration is as follows.&lt;/p&gt;
&lt;p&gt;a!videoField(&lt;br /&gt; label: &amp;quot;Video Example&amp;quot;,&lt;br /&gt; videos: {&lt;br /&gt; a!webVideo(&lt;br /&gt; source: &amp;quot;&lt;a href="https://xxxx.appiancloud.com/suite/doc/"&gt;xxxx.appiancloud.com/.../&lt;/a&gt;&lt;span style="font-family:impact, chicago;"&gt;45977&lt;/span&gt;&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; showwhen: true&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/60637?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 12:37:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f826931-7ec1-4855-8a0c-db65a6522e69</guid><dc:creator>rajeshr501</dc:creator><description>Hi Dastagiri,&lt;br /&gt;
Thanks for the response . Here my requirement is to allow the user to upload the audio to KC and play it  on click of button after upload.These are private files which must be visible only for the up-loader. &lt;br /&gt;
Thanks&lt;br /&gt;
Raj&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Play audio file on click of UI component</title><link>https://community.appian.com/thread/60612?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 05:37:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80252b3b-7d14-4610-89cf-c45bad750755</guid><dc:creator>Dastagiri Dudekula</dc:creator><description>&lt;p&gt;a!sectionLayout(&lt;br /&gt; label: &amp;quot;Pre-Recorded&amp;quot;,&lt;br /&gt; contents: {&lt;br /&gt; a!columnsLayout(columns: {&lt;br /&gt; a!columnLayout(contents: a!webContentField(&lt;br /&gt; label: &amp;quot;Playback&amp;quot;,&lt;br /&gt; browser:&amp;quot;CHROME&amp;quot;,&lt;br /&gt; source: &amp;quot;&lt;a href="https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3"&gt;www.sample-videos.com/.../crowd-cheering.mp3&amp;quot;,&lt;/a&gt;&lt;br /&gt; height: &amp;quot;SHORT&amp;quot;&lt;br /&gt; ))&lt;br /&gt; })&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; ) &lt;br /&gt; &lt;br /&gt; In web component only external links are possible. You have to create service to get the url of the audio then append it in the source location.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>