BatchNode with cocos2d-x (javascript) - cocos2d-x

I'm trying to create Browser game with cocos2d-x(javascript).
I have a problem with BatchNode.
on desktop computer, it works very well.(numbers of draw call: 3000→8)
But on android and iOS, it doesnt work.(3000→3000)
Both of them,desktop computer and smartphone, can show nodes and its Texture.
On android and iOS,BatchNode cannot work well?

BatchNode doesn't work in Canvas mode, it only works on OpenGl/OpenGLES/WebGL
Link to GitHub issue: https://github.com/cocos2d/cocos2d-js/issues/1442

Related

How to debug Webchat in iPhone Simulator

I was facing an issue on Audio not playing in voice bot in iPhone (Mic works) alone and was trying to debug the same in iPhone simulator in Mac (since I don't have access to a real device). However, in the simulator, the sample bot doesn't seem to be working. Here is the screengrab:
How am I supposed to debug this issue?
You'll need to test directly on an iPhone. Per the iPhone Simulator docs:
Hardware Differences
Though most of the functionality of devices can be simulated in Simulator, some hardware features must be tested directly on a device. The hardware features that are not simulated as of iOS 8.2 are:
Motion support (accelerometer and gyroscope) are unsupported.
Audio and video input (camera and microphone) are unsupported.

adobe animate - publishing to I Phone

I have coded an application in adobe animate using as3 and have published it to my phone (I Phone 6, OS: IOS 12.4.4) for testing purposes.
I am getting black borders at the top and button of the application. This happens with any adobe animate file irrespective of stage-size or publishing-settings. Would anyone know how to fix this?
Thanks a lot!
I believe you need to provide appropriately sized launch images to signal that the app supports those sizes of device:
Adobe AIR: Setting mobile application properties

Camera and video control with HTML5 form android webview

I use this guide : Camera and video control with HTML5
This example work excellent on Google Chrome but i can not make it work on Android webview. I also use permission : android.permission.CAMERA.
Did you remember to add this to your onCreate
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccessFromFileURLs(true);
webSettings.setAllowUniversalAccessFromFileURLs(true);
You are probably missing the last two lines in your code.
Here is a working example
Webview/ Android browser till recently support ways to access camera via webview. Thankfully now getUserMedia is supported
http://caniuse.com/#search=Accept
http://caniuse.com/#feat=stream

swfobject not working on iOS

I'm trying to embed Twitch player using Javascript API - here is documentation how to embed a player using swfobject - https://github.com/justintv/Twitch-API/blob/master/player.md. My Problem is that the code works great on desktop, but on mobile browsers - iOS (I haven't had a chance to check Android yet) script simply doesn't embed a video. It works when I use iframe method though. Is there any fix for iOS to make this works using JS API and swfobject?
swfobject is the flash player (swf = ShockWave Flash). Flash does not, and never will, work on iOS. The iframe method runs coder that detects the OS, and loads the native iOS player on iOS, and flash for everything else. You need to duplicate that functionality.

flash content on html 5 native app on android and ios

How can we run swf file inside native app of android and Ios. I want to run swf inside html5 app. Presently I am using PhoneGap or Cardova for this app.
Is there any option for html5 than please suggest.
No, you can't. Especially not on iOS that does not have any flash support at all.
Have you tried Google Swiffy? It allows to convert SWF into HTML5.
If you want to use SWF for playing animation on HTML5, you also can use LWF (an animation sample on HTML5), it works well on Android and iOS.
you can use Puffin browser for IOS and Android,
works very well for all flash swf, AS1/AS2/AS3 included