AnsweredAssumed Answered

How can I script to wait to execute command after AVplayer playing audio finish in FMGo?

Question asked by jiang_aq on Jun 6, 2018
Latest reply on Jun 6, 2018 by mikebeargie

For example,

 

I use AVplayer command to play an audio(imported into container) about 5sec (as i tried normally it can be played in the iOS background)

 

Then,  I want to freeze all the window until audio finish.

 

Then, execute another command.

 

 

By the way, I try to use GetContainerAttribute() to get the duration of the audio, then using Pause/Resume to freeze, but I don't know why some of the MP3 which were imported into container are unable to be analyzed, showing duration = 0.

Outcomes