Skip to main content
vempatir680997
Inspiring
Jul 6, 2023 10:41 AM UTC
Question

Help For Playing the MP3 audio in interface

Hello Everyone i need small help regarding to the  "audioPlayerField()",

i want to play the mp3 audio in interface so that i am using the  audioPlayerField() but i am unable to play the song can any one help for this 

10 replies

stefanhelzle0001
Brainy
Jul 6, 2023 10:51 AM UTC

What do you mean with "unable to play the song"?

Where do you host that file?

vempatir680997
Inspiring
Jul 6, 2023 10:53 AM UTC

Using the link i have called the mp3 audio but it's not working 

stefanhelzle0001
Brainy
Jul 6, 2023 11:15 AM UTC

Is that file hosted in Appian?

mathieud0001
Genius
Jul 6, 2023 11:09 AM UTC
vempatir680997
Inspiring
Jul 6, 2023 11:23 AM UTC

Yes, this one only and now the file is playing (what i gave pelvically that file is not hosted in Appian) thanks for the replay. 

allenp0001
Known Participant
May 15, 2024 4:30 PM UTC

I have the following code, but when local!valid changes to false, the volume does not increase.

audioPlayerField(
          urlResource: "https://api.twilio.com/cowbell.mp3",
          enableAudioLoop: true,
          volume: if(a!isNotNullOrEmpty(local!valid), 1, 0),
          onPlayerStateChanged: a!save(local!player, true),
          showWhen: not(local!player)

        ),

Known Participant
May 16, 2024 6:07 AM UTC

Hi,

https://cloudconvert.com/mp4-converter   use this link to convert your MP3 video format to MP4 video format only then documentViewer() function will work. pass the DocumentId in document parameter.


a!documentViewerField(
document: index(
local!movieData,
'recordType!{1d235c45-9765-4e16-a0e3-480e7c8b87f1}MS Movie.fields.{4f14a13e-bbe6-49c7-933a-ca333c14b792}movieTrailer'
),
marginAbove: "STANDARD"

)