iPad + iPhone / iOS 4 Audio() stress / smash testing : 無料・フリー素材/写真
iPad + iPhone / iOS 4 Audio() stress / smash testing / Schill
| ライセンス | クリエイティブ・コモンズ 表示-継承 2.1 |
|---|---|
| 説明 | This fascinating 10-second clip (sarcasm) shows an example of SoundManager 2 + HTML5 audio stress test pages running side-by-side on an iPad and iPhone. I'm trying to figure out when and what may cause the dreaded "cannot play movie" error dialog sometimes shown.The process roughly involves new Audio().src = 'foo.mp3?rnd='+Math.random() being assigned, and then at onfinish(), the process is repeated until the browser (or device) barfs with "cannot play movie" after running out of memory(?) or other resources.The buttons are provided as a way of starting the sound create-play loop again, should it stop for some reason. On iOS4, sound playback must be user initiated and if new sounds are to be created and/or played, they must be chained via the prior sound's finish event.The point is to try to determine what kind of limits (RAM, number of objects, amount of requests/loads) are eventually being hit and causing the strange error.The iPad made it to 135 plays in this case, and the iPhone (a 3GS with iOS 4.1) has finally appeared to have crapped out (albeit the sound stopped, but no error dialog) at 279. Starting playback again via tapping a button gave out at 291, no dialog.With the iPad, once failed, subsequent reloads of the page immediately fail to play audio and show the modal error dialog. The iPhone seemed to clean up after itself and was responsive after a reload of the page. |
| 撮影日 | 2010-09-08 21:40:44 |
| 撮影者 | Schill |
| タグ | |
| 撮影地 |

