Ways to include different video formats in different browsers and mobile devices


First of all my hearty thanks to Corinne Ducusin, one of the reader of my Tip How to play multiple videos in a loop using HTML5 and JavaScript. She is the person, who anyway encouraged me to write this post.

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

Scrollview as TableView with Titanium

Introduction :
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.

Summary :
Referring to the above video, it describe the use of scrollview as tableview using Alloy in Titanium.


Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Customizing Build-in Binding in KnockoutJs using PhoneGap

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

Video tutorial to delete specific row from a table view in Alloy using Titanium

Introduction :

As we can dynamically add rows to a table view, we can also delete a specific row from a table view.

Titanium provides ‘deleteRow’ method using which we can delete any row.

With the help of below video, I am going to describe the way to delete row.

Summary :

So using the above code block we can add the functionality to delete any specific row from a table view.


Written ByRaju Mahato, Software Developer, Mindfire Solutions

Types of Variables in Rhomobile

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.

Continue reading

A Deep Look Into Camera API of Rhomobile

In this post, we will go through the available methods for Camera API in details using Rhodes. This post will just explain the methods and uses of the Camera API from ruby excluding the rho-element javascript API.

Camera Permission:
In order to use the device camera, we need to get the permission by defining the capabilities in build.yml file.

Continue reading

Capturing Image Using Camera API & Uploading it to Server

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.

Capturing Image Using Device Camera:
As described on the previous post, A Deep Look into Camera API of Rhomobile, we need to use take picture method to capture the photo.

Continue reading