ranma's Recent Forum Activity

  •     var myaudio = new Media("/android_asset/www/media/someSound.ogg");
        myaudio.play();

    using call javascript plugin? :)

  • now we're not ;) also appmobi = not working editable text box plugin in C2 so no login of any kind can be created.

  • true, stop audio doesn't work.

    also i noticed lately some problems with audio in appmobi.

    now. back on topic? :D

  • well that's the problem with appmobi, on every step you'll see $something :) want to update your app to a newer version? pay us $something a month! want payments in your app? pay us! :)

  • Go2Holidays you need to download appmobi xdk https://chrome.google.com/webstore/detail/onmkoldigcfmebcinpmineoadckalllb and install it in chrome as plugin, then it's quite straight forward, you run it, you add application project, you paste c2 exported files, you refresh project, you build project.

  • ok, i don't seem to be able to reproduce it with phonegap export, but in appmobi export, how to reproduce:

    1) create a 500x500 jpeg background with some image, scale it to 100x100

    2) create a 500x500 sprite with some opacity, scale it to 100x100

    3) add a rotating behavior to the sprite with some medium speed of your choice

    4) export through appmobi and install

    5) run on device

    6) double tap back button to exit (put app in background - you can see in application manager that the app is still running in background)

    7) run app again

    8) repeat steps 6 -> 7 to see fps degradation of the rotationg sprite

  • Pode, PhoneGap Build doesn't support plugins, so using any of those prevents anyone from being able to build their game on PhoneGap Build. Then you gotta install hundreds of megabytes of dev software to build instead.

    aggreed, but after that you can do lots of great things you never would do without it :) and testing your apps becomes so easy you wouldn't even imagine (i know I wouldn't if I didn't do it, its painful once, but after you install it... ghaad :) with a little bit of javascript you can do ftp file uploads / downloads, speech recognition, and everything that you can with phonegap plugins, so for me it actually was worth it :)

  • i think a simple pseudocode:

    var created = false;
    ondeviceready(function(){
    if (!created) {
    cr.createRuntime("c2canvas");
    created = true;
    }
    });

    would work, I will check it today if this work.

    what am I sure of now is that every time i bring app to front after putting it to sleep, it runs slower and slower. appmobi AND phonegap export.

    cheers

  • Hi all. Bumping the marginwidth, marginheight, border options for iframe.

    Also, when exported to mobile (phonegap tested) if you open external html with iframe the app crashes. may have something to do with loosing wifi signal during app activity (connected to wifi, launched app, lost wifi signal, opened some page in iframe -> crash "the connection to the server was unsuccessful", one button "ok" when pressed app exits).

  • > why? :D

    >

    Because, as you said, the base Media() is buggy.

    I didn't :) I said the construct's audio object doesn't work with phonegap, that's all. I didn't run into any problems with phonegap base media object, not that I had it put to the extreme tests or something. Anyhow, thanks for pointing out that there's plugin for the audio output, when I have problems with base media object, will use the plugin of course :)

    cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was wondering lately why every time i run my mobile (phonegap, appmobi) app it runs slower and slower every time i did it. So i googled a little, and knowing that exiting an app doesn't really close it, app just goes to background, I think, that every time it is brought back to top there is another runtime created by cr.createRuntime("c2canvas"); as the listener "deviceready" gets a hit :) I think there should be some kind of check if the runtime is already created, and if it is, don't create another. Would be grateful for some kind of workaround until text build :) maybe some kind of

    if (!runtime) {cr.createRuntime("c2canvas");}
    

    or something, in the index.html

    cheers!

  • Just to say : if you want to do something with PhoneGap and Audio, don't use their native Media stuff (I know, I know, multiplatforms and all, yay !)

    Use a plugin to deal with that, for example that one : https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/SoundPlug on iOS (that one is promising, but it's only a month old : https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/LowLatencyAudio, although there's also that one for the Android platform in the github tree)

    why? :D

    i mean, how is that better than phonegaps native media?

    also I had real fun yesterday with eclipse, the BEST thing about it, is that you can export from construct to the eclipse workspace folder, then from eclipse just run the project on your device with one click of a button, this way testing your app is no pain at all (appmobi, every build is about 10 "next" clicks, uploading to phone, installing apk).

ranma's avatar

ranma

Member since 20 Feb, 2008

None one is following ranma yet!

Connect with ranma

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

19/44
How to earn trophies