Uncaught TypeError and no Autoplay Audio on older andriods

0 favourites
  • 2 posts
From the Asset Store
100+ Musical High Quality Sound Effects for your game!
  • Problem Description

    Audio does not play properly on older androids and iOS. There are two problems:

    1. Sound/Music does not play until I touch any part of the screen.

    2. Got Javascript error awhile after the audio finished playing (wait around 10-20 seconds), the following pop ups:

    [quote:2yqqo8p2]Javascript Error! Uncaught TypeError: Cannot read property 'createBuffer' of null http://192.XXX.X.XXX:50000/Audio_plugin.js, line 2338 (col 24)

    This may be a bug in Construct 2 or a thrid party plugin or behavior....etc

    Attach a Capx

    https://www.dropbox.com/s/y9jb8btl57k9c ... .capx?dl=0

    Description of Capx

    1. Plays audio automatically at start of layout

    2. Plays audio when green box is clicked

    Observed Result

    1. Audio does not play automatically until I touch the screen

    2. Javascript error as described above.

    Affected Browsers

    • Chrome: 42.02311.111 on Andrio:4.0.3
    • Safari: 7534.48.3 on iOS 5.1.1

    Works on newer devices but hope you can support older devices as well, as my game is highly audio dependent (kids games) and a lot of parents simply let their kids play games on their old mobile devices.

    Construct 2 Version ID

    221 (64 bits)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I think this is caused by a temporary workaround to a Chrome bug in r221. We're removing the workaround soon, but I must say, you should not expect any support at all for such old OS versions. iOS 5 is so old that it doesn't even register in the stats I look at, and even on slower-moving Android, only 2.5% of users are on 4.0, and Google has dropped support for it too.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)