Help For Playing the MP3 audio in interface

Certified Senior Developer

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 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    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)
    
            ),

Reply
  • 0
    Certified Associate Developer

    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)
    
            ),

Children
No Data