android to android live video stream via Wifi direct (P2P)

android, video-streaming, wifi-direct

Solution

A few thoughts:

- To manage the WiFi direct/p2p connection you could use something like:

- android.net.wifi.p2p

- To stream the video from a device, checkout these open-source examples

- spydroid ipcamera

- ipcamera for android

- SIPDroid

- To handle displaying the video, (depending on the video stream) you could use:

- An updating ImageView

- A VideoView

- See: Video Streaming and Android

- A WebView

Problem

I have two android devices(phones).Let's call P1 and P2. I'm writing two apps, one for live-stream P1's camera video and other for view that video (from P2). I want to connect these two devices via wifi Direct (No router). I have searched the internet for days now on how to implement a video streaming feature from an android phone to another android phone over a WiFi connection but not using Wifi direct (p2p). Here I specifically want to do this via wifi direct. Can someone help me ? Thank you :)

Original source

Related problems