matrixreal's Forum Posts

  • Ashley

    1) using the cordova cli 3.9.2 and the wkwebview plugin (https://github.com/Telerik-Verified-Plugins/WKWebView) i got the black screen

    i solved it by changing the line 3454 in c2runtime.js to this.isWKWebView = false;

    2) using cordova cli 4.X.X and the official webview plugin (https://github.com/apache/cordova-plugi ... iew-engine)

    i got black screen with / without changes

    any idea please ?

  • Mobile browsers have never supported preload for audio/video, ostensibly to save bandwidth on cellular data connections (but they still do this on wifi etc anyway). This exacerbates the fact you can only start playback in a touch, since it will have to start loading the track from scratch in the touch. Most browsers don't support seamless audio playback either. The workaround to all of this is to treat it as sound, but then playback won't begin until it's fully decoded and decompressed the track in memory.

    These are the only options available in mobile browsers I'm afraid. I've argued a lot against the browser restrictions for music (played with the <audio> tag) pointing out you can work around every restriction, albeit inefficiently, with the Web Audio API, but they've never changed it...

    are you sure ?

    cause i did done the preload on mobile (ejecta/cordova cli) on both android and ios by executing the javascript call (browser plugin) using these scripts (for example music.m4a)

    to preload

    var music1 = new Audio();

    music1.preload = 'auto';

    music1.src = 'media/music.m4a';

    to play

    music1.play();

  • matrixreal do you have the latest C2 r224? There is an iOS performance boost implemented https://www.scirra.com/construct2/releases/r224

    yes i see it ... do we need to add any plugin to phogab / corova cli project ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    i hope that they will do something for ios cause the performance still bad

  • NO

    the problem is that appodeal plugin use same dependicies (PhoneGap-GooglePlayServices) as the cranberry game plugin so it create a conflit and the build fail

    i think it's part of cranberry to solve or adapt/use the appodeal PhoneGabPlayServices)

  • Hi,

    even if it work and not crash ... what i don't understand is that when we use admob banner the app is going laggy and fsp drop

  • Hi,

    any solution about this problem ?

    because converting sound to lower khz giving bad quality sound

  • > Hi,

    > i have exactly ... the same problem on ios

    > related post

    > i was thinking about set the size of the iframe to the avalaible screen and set x to centrate ... but fail

    >

    Why do you ask a question about setting the height and width of an image when you mean using iFrame and specifically iFrame on iOS?

    You must understand that asking the wrong question will not give you the right answer..

    (When you ask how to make chocolate milk, nobody in their right mind will think of telling you how to make strawberry-icecream)

    you get reason

    but i was thinking that setting size of an image is same like other set size action of different object ... that's why

  • Hi,

    i have exactly ... the same problem on ios

    related post

    i was thinking about set the size of the iframe to the avalaible screen and set x to centrate ... but fail

  • hi

    yes he got reason ... admob make the app laggy very laggy and sometimes it crash

  • iam add html pode iframe to construct2 project

    & test whit browser And Nw.js , working very nice But..

    cocoonIO export for android not show iframe !

    What should I have this problem ?

    cocoon and ejecta does not support dom element

  • Unfortunately your capx uses a third party plugin i-frame which I don't have, so I can't open it..

    https://www.dropbox.com/s/u8sht4xg07t7b ... e.zip?dl=0

  • cranberrygame

    Hi,

    your iap plugin need to be updated specially for the new cordova ios 4.0.1

    when i add your plugin i got black screen

    take a look on this https://cordova.apache.org/news/2015/12 ... lease.html

    the in app browser plugin was updated in the link

  • using the same values..

    set it's x position to viewportleft(0)+0.5*(viewportright(0)-viewportleft(0))

    You should be able to figure out the y-position yourself now..

    Hi, thanks for your help .... but it seem not working properly

    check the example https://www.dropbox.com/s/79hrbdduhqjg2 ... .capx?dl=0

  • ok now how to centrate that image ? centrate it inthe scre