unplugged's Recent Forum Activity

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

unplugged's avatar

unplugged

Member since 7 Jun, 2012

None one is following unplugged yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies