unplugged's Forum Posts

  • Hi Ashley, thanks for your reply.

    I wouldn't say the cordova media plugin I'm using is broken. It works very well when I use it on its own. But when I add the official audio plugin to the project, they don't seem to work so well together.

    I've been using C2 for a few years now. And noticeable delays, when playing large audio files, seems to be an ongoing problem for the official audio plugin.

    I'm fairly sure these delays are not as a result of any mistakes on my part. And I should point out that, I do always make sure the audio preload settings are on. But I'll file a bug report for the issue, as soon as I have some time.

    Thanks again for your help

  • Thanks Ashley, I'll try talking to the plugin developer.

    I wasn't really asking that you offer support for a third-party plugin. I simply wondered if you might have any ideas why there seems to be a conflict between the C2 audio and cordova media plugins, when used in the same project.

    I would've been happy to continue using the C2 audio plugin. But the 3-10 seconds delay experienced when playing larger audio tracks, just isn't acceptable.

    As mentioned in my previous message, the cordova media plugin I'm currently using, can load and play large audio files instantly. If the C2 audio plugin could do the same, I would just stick to using that instead.

    Are there any plans to update the C2 audio plugin to improve the loading / playing times, at some point?

    Thanks again for your time

    EDIT: The cordova media plugin I'm using also provides a way to unload / release audio files from memory. This could be another very useful improvement to the C2 audio plugin, if you do decide to update it.

  • Thanks for your reply KYATRIC.

    We do use the "On suspended" & "On resumed" conditions in the app. When suspending the app in other ways (for example using the devices power button) the audio resumes as normal. But when returning from a phone call the audio crashes. That's why I was looking for a way to distinguish between different types. Oh well, guess I need to look for a different solution.

    But I didn't realise that alert boxes don't actually suspend the app though, so that's useful to know

  • Hey ,

    Thanks for your reply.

    When the device receives a phone call, the app doesn't close, it just pauses. So when returning from the call the app is resuming, not re-opening.

  • oosyrag,

    To reset the audio after a crash takes some time. I plan to implement a "resuming" page to deal with this pause in the app.

    But if the app is suspended for a simple alert box, it can resume without any problem. So it would not require such a lengthy and intrusive reset process.

  • Hi oosyrag,

    I'm using the cordova media plugin for audio. When the app suspends for things like alert boxes, the audio resumes correctly when the app resumes. But when the app resumes after a phone call, the audio crashes.

    I'm hoping that by recognising where the app is resuming from, I will be able to treat phone call resumes differently from alert box resumes.

  • Hey Ashley, thanks for your reply.

    I started using the cordova media plugin just a few weeks ago, to improve loading/playing times.

    I use quite a few large audio files. And when I used the C2 audio plugin, I often experienced long delays before the audio finally began to play. These delays could be anywhere between 3-10 seconds, depending upon the device and the version of Android it was running.

    So I began using the cordova media plugin, and audio now loads and plays immediately (on all devices).

    But I still need to use the C2 audio plugin on one of the pages in our app. I use it for the 'Set playback rate' action (which isn't supported in the cordova media plugin).

    So now I'm trying to juggle both plugins, but there seems to be a conflict between them. And when I resume from making a phone call, the cordova audio crashes.

    I'd really appreciate any ideas or advice you might have.

    Thanks

  • Hi all,

    Does anyone know of a way to tell where my app is resuming from, when on a mobile device.

    I need to be able to tell whether its resuming from a phone call or somewhere else. Can anyone think of a way to do this? I'm currently exporting with cordova and building in phonegap.

    I'm having a bit of a problem with audio after resuming from a phone call (the audio crashes). So if I can tell when the app is resuming from a phone call, I think I can set up my events to handle that situation in a different way.

    Thanks for your advice

  • Hi everyone,

    I'm using the cordova media plugin and C2's audio plugin together. But the C2 audio plugin seems to be causing audio to crash when my app suspends and resumes.

    Most of the app uses the cordova media plugin for audio, but when the app is suspended (then resumed) the audio locks up and stops working.

    There seems to be a conflict of some kind, between the two different audio plugins. Because when I remove the C2 audio plugin, everything works fine.

    Does anyone have any idea why the two plugins might be causing a conflict (@Ashley)?

    Thanks for any advice you can offer

  • Hi cranberrygame

    I bought your plugin pack a short time ago, because I wanted to use the cordova media plugin. But when I add it to my project, it doesn't seem to do anything.

    There are no events, actions or expressions available. Is it broken, or am I doing something wrong?

    Thanks

  • Thanks Ashley, I'll give your suggestions a try

  • Fantastic plugin, does the job really well and a great price!

    Thanks

  • Bump

  • Wenutz we've been experiencing a similar touch problem, when exporting our C2 project with Cordova. But we're building through PhoneGap, not Intel xdk.

    We've been experiencing a double touch problem, with all of our touch objects. So when we click on an object, it registers the touch twice. We're using C2's 'On touched object' event, but we've also tried using 'On any touch end' combined with 'Is touching object', to see if that would help. But we're still getting a double touch either way.

    We've only noticed the problem on Android devices running 4.x versions. We've tested on Android 4.1, 4.2, 4.3 and we see the double touch issue on all of these devices. But we've also tested on an Android device running version 5.0, and the touch behaviour performed correctly.

    We believe it could have something to do with webview, although we're not exactly sure what the problem is.

    I hope they find a fix for it soon though. Because our app is ready for release now!

    EDIT: We've tried exporting the project through both C2 r227 & r229, but the problem still persists. One odd thing to note, we were using C2 r216 before we recently updated to r227. But we never experienced this problem when using that earlier version of C2!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    I'm unable to get all 3 platforms (iOS, Win, Android) to build successfully, using a single version of phonegap cli. I've tried all versions of phonegap cli (5.1.1, 5.2.0, 5.4.1, 6.0.0, 6.1.1). But no single version will allow me to build for all 3 platforms simultaneously. And phonegap build provides a very unhelpful error message with every failed build (please see image below)

    Attach a Capx

    https://dl.dropboxusercontent.com/u/78057629/Cordovaclitest.capx

    Description of Capx

    A simple, empty capx

    Steps to Reproduce Bug

    • Export as Cordova
    • Update config file with this line - <preference name="phonegap-version" value="cli-5.2.0" /> (Note: you can use any of the various cli versions, as listed above)
    • Zip the files
    • Upload the zip to build.phonegap.com to view results of the build

    Observed Result

    With each different version of cli used, you will see different results (please see list below).

    • cli-5.1.1 - iOS and Win build, but Android fails
    • cli-5.2.0 - iOS and Win build, but Android fails
    • cli-5.4.1 - iOS and Win build, but Android fails
    • cli-6.0.0 - iOS builds, but Android and Win both fail
    • cli-6.1.0 - produces Android (armv7) build, but iOS and Win both fail

    Expected Result

    A single version of phonegap cli to build successfully for all 3 platforms

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    Windows 8.1 & 10

    Construct 2 Version ID

    C2 r227