Yesterday I received an email from her, which includes a query, “how can we include the different formats of same video file to play it in different browsers”.
We all know that all browsers do not support same media formats of videos. So it’s a best practice to include different formats of videos to play it in different kind of browsers and devices. The browser will detect the supported format automatically and play that video file.
As per that post, videos were declared in an array to play them in a loop using HTML5. var videoSource = new Array();
So now the question is, how can we include the other formats for the same video? If we declare the array like below, will it work? Continue reading →
With multiple view added vertically on a scrollview looks as a tableview on a screen. By adding views one after another to scrollview, we can change that scrollview as a tableview with Titanium.
Referring to the above video, it describe the use of scrollview as tableview using Alloy in Titanium.
Knockout.Js not only gives us the ability to use build-in bindings but also allows us to use our own custom bindings. In this blog, we will basically look into creating the custom bindings for Knockout.Js using PhoneGap.
Creating custom binding is much easier than ever. Before moving forward, we need to get into the basic structure to register our custom binding. To register a custom binding, we need to add it as a sub-property to ko.bindingHandlers. Continue reading →
Variable is a symbol or name that stands for a value. Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data. Later, when the program is executed, the variables are replaced with real data. This makes it possible for the same program to process different sets of data.
There are five types of variables supported in Rhomobile. These types of variables are explained below.
Camera Permission: In order to use the device camera, we need to get the permission by defining the capabilities in build.yml file.
In this post, we will see how to capture the image using Camera API and store it to app base path so as to gain permission to later upload it to server. We will see the way to store the details of the image on the rhom ( SQLite database ), then later upload the file to server on the time of sync process.