Tag Archives: video

Android: How to play RTMP video streams

In the post Android: How to play RTSP or HLS video streams, there is one missing video streaming issue leaving unresolved: the RTMP videos.

This post outlines how to implement rendering RTMP videos on Android platform. This is far from a trivial problem, but I will get it done quickly using the open source Vitamio library.

  1. Download the Vitamio bundle from, extract the zip file if you downloaded the zip file, or if you pull the source out of it, you will see a folder called “vitimio” there.

  2. In Android Studio, create a project, let’s call it VideoStreamPlayer.

  3. In Android Studio, go to File->Import Module, navigate to “VitamioBundle-master” folder you extracted or pulled from the source, select “vitamio” folder and press finish to import the library.

  4. Add compile project(‘:vitamio’) in build.gradle(Module: app) dependencies section


  • Add the internet permission in your manifest, outside <application> node

<uses-permission android:name=”android.permission.INTERNET”/>

  • Build the app and make sure it works.
  • Go to the activity layout, add below code:


android:layout_height=”wrap_content” />

  • In the activity class, add below code:

protected void onCreate(Bundle savedInstanceState) {

    if (!LibsChecker.checkVitamioLibs(this))  //Important!

    mVideoView = (VideoView) findViewById(;
    path = “rtmp://”;

Rebuild and run. That is it!

Tip 1: to make it easier to debug and troubleshooting, you might first make sure an rtmp stream is valid. You can do so by opening the RTMP url in VLC player.

Tip 2: If nothing displays in the activity, make sure  if (!LibsChecker.checkVitamioLibs(this)) is called.

Tip 3: Depending on the network, some RTMP might be very slow, so be patient when it loads.


Posted by on September 20, 2015 in Android, Programming


Tags: , , , , , , , ,

Android: How to play RTSP or HLS video streams

Playing rtsp video streams seems to be a complex task in Android, but actually it is insane easy. Here is how.

  • Create a new project using Android Studio
  • Drag a VideoView control to the UI or add below code in the UI xml file:
        android:id="@+id/videoView" />


image   image

Read the rest of this entry »


Posted by on September 19, 2015 in Android, Programming


Tags: , , , , , , , , , ,

JIRA & Jira Agile installation: A step-by-step guide with snapshots

JIRA and JIRA Agile are powerful tools for project management. In my recent work, I tried to install JIRA and JIRA Agile on a Ubuntu Server or Ubuntu Desktop, and though seemingly this is a straightforward process, however to really get it up and running as you expected, this is far from a trivial work.

The motivation of this post is to offer a step-by-step guide, with as many snapshots as possible, so as to make it easier for others to repeat this installation process.

I assume the Ubuntu Server is installed on another machine, be it a physical or a virtual machine, to get he IP of this Ubuntu server, run the below command in a terminal:



Read the rest of this entry »

Leave a comment

Posted by on April 29, 2015 in Project Management


Tags: , , , , , , , , , , , ,

Unity3D webcam rendering: incorrect rotation and flip using WebCamTexture

When rendering webcam as textures, Unity3D ships with a useful WebCamTexture class, the typical use of this class is as follows:

  • Create a GUITexture object: in unity menu:  GameObject  arrow, dash, right icon  Create Other  arrow, dash, right icon  GUI Texture, let’s name it CamTexture;
  • Create a C# script, let’s also name it CamTexture.cs
  • In the script, create an instance of WebCamTexture:

    WebCamTexture webcamTexture;

  • In the Start() function, add below code:

    webcamTexture = new WebCamTexture();               
    guiTexture.texture = webcamTexture;       

Wrongly oriented CAM View

Actual physical view


Posted by on November 4, 2013 in Programming, Unity 3d


Tags: , , , , , , , , , ,