Player Loop Function

98 views
Skip to first unread message

apptr...@gmail.com

unread,
Dec 5, 2013, 4:28:13 PM12/5/13
to mitappinv...@googlegroups.com
I am Using AI2
Windows 7 Pro 64 bit
Firefox 21.0.1

the issue is that when i set the mp3 file to loop is has a pause just prior to the start of the loop after the file has played through.

i know that this issue was filed before but i cannot find that you had resolved the issue.

please advise

vic

If you are asking for technical help, you must provide the following information:
- Are you using MIT App Inventor Classic, MIT App Inventor 2, or something else (what?)
- What OS are you using? (e.g, MacOS 1.8, Windows 8, ...)
- What browser are you using (e.g, Chrome version 30, Firefox 24, IE 8, ...)
Also provide as much information as you can, such as screenshots and instructions that will let others duplicate the issue.

Hal Abelson

unread,
Dec 6, 2013, 12:01:57 PM12/6/13
to mitappinv...@googlegroups.com, apptr...@gmail.com
This is still unresolved.

Scott Ferguson

unread,
Dec 6, 2013, 2:02:36 PM12/6/13
to mitappinv...@googlegroups.com, apptr...@gmail.com
Are you certain that there is no empty space at either the beginning or end of the sound file? You can check that with a sound editor (Audacity).
If that is OK then the next thing I would try is first using When Player1.Completed block to call Player1.Start
If that is still not working, disable the Plsyrt1.Completed block. then create a Clock1 with always running unchecked and enabled unchecked and an interval of zero 0.

When you have loaded your Player1.Source and called Player1.Start then enable Clock1.Timer.
In the Clock1.Timer block place an if block inside that tests Player1.IsPlaying
if so do nothing, otherwise the song is over so call Player1.Start

Just some things to try. 
Let us know if any of that works for you.
---
Scott
Reply all
Reply to author
Forward
0 new messages