Streaming Video From Android

plazm picture plazm · Nov 11, 2010 · Viewed 10.4k times · Source

I'm trying to stream video from the Android phone, which should be watched in an mediaplayer. I've been looking at http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system which seems to be a dead end since it send the raw file data, and not a streamable format.

Then I tried using some code from SipDroid, more specific; parts of VideoCamera.java, RtpPacket.java and RtpSocket.java, which gives a stream on UDP, however these is not playable in i.e. mplayer(can't detect the codec). Wireshark tells that it is a UDP packet and not a RTP packet so something might be missing?

I'm kind'a stuck, have you any suggestions how to get past this bump?

Answer

kks picture kks · Feb 14, 2011

Right click on the packet in Wireshark and select the decode as option. Then select rtp. Now you can see RTP packets in Wireshark.