2016년 12월 5일 월요일

How many short sounds can be loaded into AI2?


I know one answer is you can upload asmany as long as the total app length is less than 10 MB.

But say I have 500 sounds and in total the length is 4 MB, can AI2 handle this?

-- 
Just out of curiosity, what kind of app needs 500 sounds?
App Inventor seems to fail when there's a big number of anything, even if the memory is still OK.
Are you sure you need 500 sound files? 

I think a better solution would be to use Taifun's player extension and make one file with all the sounds.
His extension allows you to set where you want to start. Then start a clock when the sound is played and stop the sound after the desired sound goes to silence gap and before the next sound starts.
You will have to make a list of start positions and durations, but at least you don't have to upload 500 files.

-- 

just try it and let us know, if it works

and btw. instead of uploading 500 assets one by one into App Inventor, first export the project (aia file), open it using 7zip, move the files into the assets folder and then upload the project into App Inventor again

--
Jeff's recommendations:

I believe I understand what is happening here. 

AppInventor is hosted on Google’s App Engine system. App Engine places 
strict limits of how long a single transaction can run (60 
seconds). As you build your project you add blocks and upload 
assets. Each of these operations runs in a small amount of time. 

However when you attempt to upload a .aia file with a lost of assets, 
the upload is one transaction. If there are a lot of images, it takes 
awhile for these to get uploaded (another Google restriction). If the 
sum of the upload times exceeds 60 seconds, the transaction is 
terminated and your project upload fails. 

We are looking at several alternatives to avoid this problem, but for 
now there isn’t much we can do about it. 

You are welcome to try uploading your project to 
code.appinventor.mit.edu. This is a re-implementation of MIT App 
Inventor which is not running in App Engine and doesn’t have the App 
Engine related restrictions. 

-Jeff 

P.S. code.appinventor.mit.edu is reasonably stable, but we will be 
updating it this week, including moving it to different hardware, so 
there may be some (hopefully short) downtime. 


--


댓글 없음:

댓글 쓰기