Skip to main content
vempatir680997
July 6, 2023
Question

Help For Playing the MP3 audio in interface

  • July 6, 2023
  • 10 replies
  • 0 views

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
July 6, 2023

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

Where do you host that file?

vempatir680997
July 6, 2023

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

stefanhelzle0001
July 6, 2023

Is that file hosted in Appian?

mathieud0001
July 6, 2023
vempatir680997
July 6, 2023

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

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)

        ),

May 16, 2024

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"

)