Um Bug no Tocador de audio.

11 views
Skip to first unread message

Bruno Castro

unread,
Jul 30, 2019, 8:51:32 PM7/30/19
to MIT App Inventor Forum
Ao utilizar a plataforma, notei um erro no Tocador de Áudio, pois este tem uma função para pausar, porém não tem uma função para retomar a reprodução.  

TimAI2

unread,
Jul 31, 2019, 2:14:39 AM7/31/19
to MIT App Inventor Forum
Run Pause again for resume

BodyMindPower

unread,
Jul 31, 2019, 3:40:49 AM7/31/19
to MIT App Inventor Forum
@ Tim  "Run Pause again for resume"

no, try this:


However, you must not set the Player.Source using the play button, otherwise the file will be played from the beginning:

TimAI2

unread,
Jul 31, 2019, 5:27:09 AM7/31/19
to MIT App Inventor Forum
Must have been thinking of something else ;)

From the documentation:

Pause()
Suspends playing the media if it is playing.
Start()
Plays the media. If it was previously paused, the playing is resumed. If it was previously stopped, it starts from the beginning.
Reply all
Reply to author
Forward
0 new messages