autoload on ipad loop error

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
on nodebug.js 1252line , in function "_setup_html5" call s.load(), and in load() function line 630, call _setup_html5, loop error ? please check code.
Photo of easecell

easecell

  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Scott

Scott, Official Rep

  • 3873 Posts
  • 253 Reply Likes
Try the regular soundmanager2.js, the nodebug version is built automatically and is not good for debugging issues.

Keep in mind that iPad and other iOS devices do not allow auto-play, and auto-load may also not be allowed.

I'll look into auto-load on iOS in any event, and make sure there is not an infinite loop in there. That would be bad. ;)
Photo of easecell

easecell

  • 2 Posts
  • 0 Reply Likes
thanks!
There are two other problems
1:on ipad load mp3 file error,but on mac is ok , I found a solution
url=http://sites:3000/mp3/test1.mp3 load error
modify url=/mp3/test1.mp3 ok!!

2:at soundmanage2.js 2728 line
if (dURL === lastURL)
need modify
if (dURL === d(lastURL)) {

2722 line
if (dURL === lastGlobalHTML5URL)
modify
if (dURL === d(lastGlobalHTML5URL))

this error tested one is encode url and one is not,but is same url
so, the var sameURL set to false. the s.instanceCount is reset to 0
so, the onfinish event not trigger.
Photo of Scott

Scott, Official Rep

  • 3873 Posts
  • 253 Reply Likes
Thanks - this is now on the dev branch and will go out with the next official release.
https://github.com/scottschiller/Soun...