Sound not working on cocos2D JS v.3 + IntelXDK + Cordova - intel-xdk

I have a problem with the audio that is not working on Android or an emulator. But it is working on web apps. I have searched in Google but i can't find the solution.
Why does cc.audioEngine is not working while using Intel XDK ?

Instead using library of JS, you can build your own plugin of cordova to record / play audio on your android. Or search existing cordova plugin on github.

It's not that the XDK is "not working" it's that the webview and/or webview requirements don't meet the requirements of your cc.audioEngine library. I'm no expert on cc.audioEngine, but it appears to require Web Audio. That is not supported in the standard webview that you find in the typical Android device. This is why we provide the Crosswalk for Android build option. It includes the modern HTML5 features and APIs you take for granted in your desktop browser.
Try building with Crosswalk and debugging with the Debug tab. Both of those use the Crosswalk webview.

Related

which framework is good for building barcode scanner mobile app?

I'm planning to make an application that uses barcode scanning to scan UPC barcodes and maybe other barcode standards, I will be using firebase for database, I would like to have suggestions on which framework/tool for Mobile Development that I should use?
What I need in the framework is :
JS Libraries and packages support(NPM support would be Nice)
Community and tutorial Support(StackOverflow,github..etc)
CSS Libraries and icons support
Access to native features
I'll be developing for android but maybe I'll try to make it cross-platform later
I know about a few frameworks/tools Like ionic3, React Native, Android studio but I'm not sure which I should use?
I am currently developing an app in Ionic and I used the native barcode-scanner plugin. For me it was easy to implement and works great. Ionic makes use of Cordova.
https://ionicframework.com/docs/native/barcode-scanner
This plugin supports UPC_A and UPC_E barcodes.
Ionic has enough documentation and a start guide.
Ionic icons: ionicons
Access to native features: yes
Ionic can build to Android, IOS and windows.

Video player for web, mobile and desktop applications in Flutter?

There is this Flutter plugin for playing videos on iOS & Android (Video Plugin)
However, I also want to embed a video player into my web and desktop applications.
So I dont understand how Flutter is going this way of supporting plugins for different platforms. Because if you have a look at the video plugin it makes use of the AVPlayer on iOS and ExoPlayer on Android, but these are not then supported for web and desktop applications.
My Questions:
Why isn't the community writing a Flutter plugin for videos which is independent of it's underlying platform? Or isn't it possible? Why do we have to rely so much on Android & iOS especially if Flutter will be more and more platform independent in the future? Isn't it possible to write the source code for making videos working on different platforms solely with the Dart language & Flutter framework?
Is there currently a way to embed a video player for web and desktop applications?
You can use dart_vlc to add video playback to your Flutter desktop application.
It currently supports Windows & Linux, we are working on adding macOS support actively.
The library is rather easier to use aswell,
Player player = Player(id: 0);
player.open(
Playlist(
medias: [
Media.file(File('C:/music.mp3')),
Media.file(File('C:/audio.mp3')),
Media.network('https://www.example.com/music.aac'),
],
),
);
Thanks. Checkout project README for more examples and documentation.
You can try using WebView by flutter_webview_plugin package. It can take advantage of the built-in video decoders/players in any Operating Systems as they're pre-loaded as web content.
Edit: This is because not many Video Plugins are to be found for the Desktop and Web Platforms yet (At least by me)
The video_player along with the video_player_web plugins work for web, android and ios. But I have not tested them on a desktop.

Does Ionic compile the Code to Native?

I've searched some times here but could't find an Answer to this.
Does someone know this and can explain how Ionic handles it?
Does Ionic compile the Code to Native? NO
Ionic is for developing Hybrid apps.
What are Hybrid apps?
Hybrid apps are essentially websites embedded in a mobile app through
what we call a webview. They are developed using HTML5, CSS, and
Javascript, and execute the same code regardless of the platform in
which they run. They can, with tools like PhoneGap and Cordova, use
the native features of a device, like GPS or camera.
What are Native apps?
Native apps are developed in the language required by the platform it
targets, Objective-C or Swift for iOS, Java for Android, etc. The code
written is not shared across platforms and their behavior varies. They
have direct access to all features offered by the platform without any
restriction.
Here is a nice article about it.
Cordova converts the project into a native which has only ONE Page, that is a WebView (WKV WEB View in iOS, etc). And all of the ionic code is run on that webview. Basically an ionic/cordova app is a website which looks like an app!

Web SDK - Doesn't work on iPhone

Aviary HTML5 Web SDK works fine for iOS laptop, Android phones, Windows laptops, but not iPhone.
Tested with iPhone safari browser and iPhone chrome browser.
Aviary feather loads, then "loading-spinner" icon keeps on spinning.
Is this a bug, or is mobile iOS not supported?
The Creative SDK for Web does not currently support phone-sized mobile devices, as noted in the Getting Started guide for Web:
For handheld use we generally recommend our native SDKs (iOS, and Android), which have a UI optimized for smaller screens and performance tuned to the native device.
As one possible alternative, as of last week, there are PhoneGap plugins (compatible with PhoneGap, Cordova, and Ionic) that are available for the Creative SDK.
See the following blog posts to read more about the Creative SDK PhoneGap plugins:
PhoneGap plugins for the Creative SDK
PhoneGap template for the Creative SDK Image Editor
The relevant plugin and template repos, with instructions and API guides, are available on GitHub:
Client Auth plugin: The starting point for all Creative SDK integrations
Image Editor plugin: the Creative SDK Image Editor for PhoneGap
Image Editor template: An optional sample app template for quickstart

How to develop applications for windows or bada using phonegap and eclipse plugin?

I have installed eclipse phonegap plugin and I am easily able to make applications for android. However I want to make application for any other platform like bada, tizen , blackberry, etc. But when I create new Phonegap project, it doesn't show any option for choosing platform. It directly takes me to android. Is there any way that I can use this plugin for developing for other platforms.
I have googled a lot but nothing found relevant.
Probably you may be interested in Titanium. Latest version supports (check beta) Tizen and Blackberry 10 as well as Android and iPhone. With it you will be able use javascript for mobile application development. Also it creates "native" application instead of html if possible.
And forgot Bada. It`s gone.