Hi All,
Thanks in advance!
How to play an uploaded audio file inside a SAIL UI .
appreciate your suggestion.
Thanks
Discussion posts and replies are publicly visible
a!sectionLayout( label: "Pre-Recorded", contents: { a!columnsLayout(columns: { a!columnLayout(contents: a!webContentField( label: "Playback", browser:"CHROME", source: "www.sample-videos.com/.../crowd-cheering.mp3", height: "SHORT" )) }) } ) 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.
rajeshr501
Please find the code. This works for sure.
Upload the audio (In appian its document).
Get the audio file id (document id)
Pass the document id to be played.
Configuration is as follows.
a!videoField( label: "Video Example", videos: { a!webVideo( source: "xxxx.appiancloud.com/.../45977" ) }, showwhen: true )
The above discussed codes are not working in my environment.
But, this approach is working:-{ a!documentViewerField( label: "Document Viewer", labelPosition: "ABOVE",
/*constant for mp3 document which is uploaded in a Folder*/ document: cons!QY_CONS___MP3DOC, height: "SHORT" )}
How do you get the absolute URL to Appian KC document?
a!videoField() and a!documentViewerField() both works file.
I just figured out the URL to doc could be as following.
https://<yourappiancloudurl>/suite/doc/<docId>