RSS

Tag Archives: play

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:
<VideoView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/videoView" />

 

image   image

Read the rest of this entry »

Advertisements
 
7 Comments

Posted by on September 19, 2015 in Android, Programming

 

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

Android development: Play Youtube video in your app, “Can’t play this video” and troubleshooting


Playing Youtube video in your app is a frequently requested feature, and some time ago, it is trivial to do this using VideoView:

image

In the layout file, add below:

<VideoView
     android:id=@+id/videoView1
     android:layout_width=match_parent
     android:layout_height=wrap_content />

Read the rest of this entry »

 
9 Comments

Posted by on March 17, 2014 in Android, Programming

 

Tags: , , , , , , , ,