Audio causes Android browser to hang (r178)

0 favourites
  • 5 posts
From the Asset Store
This is a single chapter from the Construct Starter Kit Collection and the Student Workbook from the Workshop.
  • Repost as per rules.

    Problem Description

    Add the audio object to a C2 file, add an audio file - the game will not load on the native browser on Android devices.

    Also seen in this terribly, terribly recorded video:

    Attach a Capx

    Attached.

    Description of Capx

    ____ Concise description of what this CapX does ____

    Steps to Reproduce Bug

    Add the audio object to a C2 file, add an audio file, hit preview over LAN or host online. Open in Android browser.

    Observed Result

    Literally nothing. The game hangs at the loading screen.

    Expected Result

    Something.

    Affected Browsers

    Native Android browser, Chrome is unaffected.

    Operating System and Service Pack

    The mobile device I am using is a HTC Desire HD running Android v2.3.5 (Gingerbread), whilst out of date this is primarily for legacy compatibility, my employer has the same issue on what I can only assume is the latest Android software and hardware, but I can check if needed.

    Construct 2 Version ID

    r178

    Notes:

    The audio object alone doesn't break the project, but adding audio files will, I will try later with different files, but for now I am using one from the Asset Bundle.

  • I can't reproduce on a Samsung Galaxy S3 running cyanogenmod. I think it's to do with audio preloading, and the Android stock browser has poor audio support, so it may be unable to report the preloaded status correctly. Can you confirm by turning off 'Preload audio' in project properties and seeing if it works again on an affected device?

    Either way I've turned off audio preloading for the Android stock browser for the next build, since I can believe it is too crappy to work (that browser is a nightmare... please encourage everyone to get Chrome for Android instead!)

  • Disabling preload audio fixes the issue! Thanks Ashley

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes but it still shouldn't hang when preloading audio is enabled. Can you confirm r179 fixes it with preloading enabled?

  • r179 fixes the issue completely (Y)

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