Stream live video from phone to phone using socket fd

I found an open source project for implementing what I was trying. It processes the video with metadata through an IP camera. Although it does not send video directly to a phone, it does broadcast video for various devices to watch. The source code can be found at the following project page http://code.google.com/p/ipcamera-for-android/. With Android … Read more

VideoView onResume loses buffered portion of the video

I’ve spent several hours trying to hack the original VideoView source code and Now I can confirm VideoView can be hacked to behavior what you want – retain buffering after surface destroyed. I’ve tested on my Samsung Galaxy S2, which works as expected, in my case, the video buffering (streaming m4v video from remote http … Read more

Stream video in Java

Xuggler is a nice opensource Java library that deals with streaming and modifying media on the fly. http://www.xuggle.com/xuggler/ You can either use it with Red5 or if you want complete control, Xuggler has an IContainer class where each instance can be set up to stream media in or out. I’ve been able to restream media … Read more

Live-stream video from one android phone to another over WiFi

If you do not need the recording and playback functionality in your app, using off-the-shelf streaming app and player is a reasonable choice. If you do need them to be in your app, however, you will have to look into MediaRecorder API (for the server/camera app) and MediaPlayer (for client/player app). Quick sample code for … Read more

how to play video from url

It has something to do with your link and content. Try the following two links: String path=”http://www.ted.com/talks/download/video/8584/talk/761″; String path1=”http://commonsware.com/misc/test2.3gp”; Uri uri=Uri.parse(path1); VideoView video=(VideoView)findViewById(R.id.VideoView01); video.setVideoURI(uri); video.start(); Start with “path1”, it is a small light weight video stream and then try the “path”, it is a higher resolution than “path1”, a perfect high resolution for the mobile … Read more

How to play .mp4 video in videoview in android?

Finally it works for me. private VideoView videoView; videoView = (VideoView) findViewById(R.id.videoView); Uri video = Uri.parse(“http://www.servername.com/projects/projectname/videos/1361439400.mp4”); videoView.setVideoURI(video); videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { mp.setLooping(true); videoView.start(); } });