#1 2015-12-21 02:23:09

edunt
Member
Registered: 2015-12-21
Posts: 258

Embeded Audio File

Hi David,

I am playing with the trial version of App Builder and I can say your software is really amazing to use and worth spending money on.

I have some questions about embedding audio file in MediaPlayer control:

Is it possible to embed *.mp3 file inside it?

what other file formats can I use for MediaPlayer control?

Can I create my own customise mediaplayer control? if yes, how can I do it?

Thanks.

ednut.

Offline

#2 2015-12-21 02:48:16

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Embeded Audio File

Hello edunt,

Thanks for your interest and kindly words. Currently, out of the box, we can use the MediaPlayer control to reproduce MP4 (MP3), 3GP, OGG and Webm file formats, however, the files must be placed in the app server. If our target are the browsers and our application resides in internet this is not a problem, because the media files are already placed in the server.

If we plain to build for the Android platform (using Apache Cordova), however, we need to take in count that our media files must be placed in a server, because the MediaPlayer can't work with local files, at least at this time. You can include your own Mediaplayer (but the local files "problem" probably persists) by using an HTML control.

You can use the HTML control (maybe an Iframe control too) to provide the MediaPlayer HTML. And then you can use some app, view or control event in order to place the required Javascript, if the MediaPlayer control requires it. However, the MediaPlayer control offered by App Builder is fully customizable, for example, you can provide your own controls and not the included by default.

Take a look at the VideoPlayer app sample included by App Builder (Menu -> File -> Samples) if you like.

Hope this information can help you in some manner edunt.

Offline

#3 2015-12-21 03:13:17

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: Embeded Audio File

Hi David,

Thanks, for quick response, it is helps.

About building for the android platform, can I use Eclipse IDE with the generated files for creating *.apk?
Have you try it yourself?

Thanks
edunt

Offline

#4 2015-12-21 03:20:16

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Embeded Audio File

Hello edunt,

To generate APK files for Android or build for other platforms we recommend Apache Cordova CLI or Adobe Phonegap. App Builder prepare for you the appropiate application's config file for Apache Cordova CLI and Adobe Phonegap and Batch files for Apache Cordova CLI. I recoomend Apache Cordova CLI instead Phonegap for various reasons.

A8hTWx4.png

Installing Apache Cordova CLI can appear difficult at the first time (for example, we need to install the Android SDK too) but, once we get ready, build an App Builder for the Android platform is a question of seconds. You can found a mini-tutorial in the program help file, but, probably it's better to read information around internet.

For example, the Apache Cordova CLI documentation site can be a good start point.

Take a look at this video too:

https://www.youtube.com/watch?v=a5g_yAJzpJI

If you have any question about the installation or have some doubts or need some help, just post here or contact me and I will try to help you edunt.

Offline

#5 2015-12-21 03:26:48

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: Embeded Audio File

Hi David,

Thanks for the video. I have watch all your videos on youtube and the reason for Eclipse IDE is just I don't want depend too much on third party before able to build *.apk.

I am familiar with Android SDK, with necessary installations will I be able to build *.apk from app builder?

Thanks
ednut

Offline

#6 2015-12-21 03:32:58

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Embeded Audio File

Hello edunt,

I think you no need to worry at all. Apache Cordova is an open source project used by lot of people and companies around the world: Adobe Phonegap, for example, is based in Apache Cordova. Not only this, but, App Builder is integrated with Apache Cordova in certain ways. For example, App Builder integrates various Apache Cordova plugins like Device, Camera, Barcode, etc., which allow us to play with the device's capabilities from our applications.

In other words, even when you try to use another similar environment, probably such environment uses Apache Cordova behind... and finally they are needed, because in other case the App Builder features which relies on Apache Cordova never can work. So please read the Apache Cordova CLI documentation and also how to setup the Android SDK: basically we need to play with the Android API level 22. Maybe other tools can be required, depending if some Apache Cordova plugin requires it, for example. In this case the plugin's documentation tell us what we need.

Offline

#7 2017-01-24 13:27:09

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Embeded Audio File

Hello to all,

Just to say that the MediaPlayer control can now reproduce local media files also in Cordova's builded applications. More information in this forum's thread.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.