0
Не ошибка

.mp3 Audio not looping when set to execute on page load

Charmaine Anderson 11 лет назад обновлен Alin Alexandru Matei 11 лет назад 1
I have an .mp3 file set to play on page load which it does fine in Interact mode, however it won't loop, even though I have it set to loop.  Not sure if it is a file size issue.  The audio clip is 1.1 MB, but its only about 20 secs long. I also tried setting the replay on the audio to 5 times and it still did not loop. Thanks for any suggestions to resolve this.  Also FYI, when I exited from Interact mode back to Design mode, I got this error message below: 

InteractBuilder Version: 3.3 Build 325
Device: MacBook Pro
Processor: Intel Core i7
Memory: 4 GB
System: 10.7.5
--------------------
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
Error: Chunk: no such object / Chunk: error in object expression / Chunk: can't find object / Object: does not have this property / Factor: error in left operand / Operators =: error in operand / wait: error in expression
Handler: Behavior_PlayAudio
Hint: 8607183
Location: Line 0, char 1
Object: button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
89: Line 0 at char 1: Chunk: no such object ----> 8607183
69: Line 6156 at char 41: Chunk: error in object expression ----> player id 8607183 of card id 1140 of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
77: Line 6156 at char 41: Chunk: can't find object
456: Line 6156 at char 25: Object: does not have this property
198: Line 6156 at char 44: Factor: error in left operand
181: Line 6156 at char 44: Operators =: error in operand
625: Line 6156 at char 1: wait: error in expression
253: Line 6155 at char 1: if-then: error in statement
490: Line 6153 at char 1: repeat: error in statement
253: Line 6152 at char 1: if-then: error in statement
241: Line 6152 at char 1: Handler: error in statement ----> Behavior_PlayAudio
353: Line 0 at char 0: Object Name: ----> button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
573: Line 3540 at char 1: Handler: can't find handler ----> Behavior_PlayAudio
587: Line 3202 at char 1: switch: error in statement
253: Line 3172 at char 1: if-then: error in statement
253: Line 3169 at char 1: if-then: error in statement
253: Line 3095 at char 1: if-then: error in statement
241: Line 3095 at char 1: Handler: error in statement ----> _Behavior_Do
353: Line 0 at char 0: Object Name: ----> button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
line 150 of handler "errorDialog" of button "stsErrors_FS" of card id 1002 of stack "libSTSErrors"
line 14245 of handler "DoError" of stack "InteractBuilder" of behavior button "Stack B" of card id 1002 of stack "Behaviors"

Ответ

Ответ
Не ошибка
Hi Charmaine, I've tested the loop effect with an mp3 also on page load and it's working great. Could you attach that mp3 file to this post or send it over alin@interactstudios.com to see if it's something wrong with it?
На рассмотрении
Hi Charmaine, I've tested the loop effect with an mp3 also on page load and it's working great. Could you attach that mp3 file to this post or send it over alin@interactstudios.com to see if it's something wrong with it?
Ответ
Не ошибка
Hi Charmaine, I've tested the loop effect with an mp3 also on page load and it's working great. Could you attach that mp3 file to this post or send it over alin@interactstudios.com to see if it's something wrong with it?
Thanks for checking my audio file Alin, your email to me correctly diagnosed the problem being that I had exported my audio clip with a lot of empty space on the timeline which I didn't realize when I rendered the clip in garageband.  The problem was there as a small bit of audio way down the timeline in garagaeband and I didn't realize it which made the file size huge and made it appear the audio wouldn't loop in IB3.  Sorry for the bother!  Thanks much!

Сервис поддержки клиентов работает на платформе UserEcho