How to making P2P connection between two android device without WI-FI? - udp

I am working on IP cameras video streaming application over RTSP in android. How to make Peer-Peer connection between IP cameras and device (android) for streaming using TCP/UDP hole punching.I have not enough knowledge about these.Anyone please share about these with some suitable example.

Related

How to implement p2p in android Over TCP/UDP connection

I am working on IP cameras video streaming application over RTSP in android. How to make p2p connection between Ip cameras and device (android) for streaming using TCP/UDP hole punching.I have not enough knowledge about these.Anyone please share about these with some suitable example.

Connecting to a “P2P Wifi camera”

I have a Chinese "P2P Wifi Camera" (model Q5) that i'd like to connect to from an iOS app.
The camera can operate in "LAN Mode" - in this mode i'm connecting from the phone/computer to the wifi network of the camera itself, and an app called "P2PCamViewer" displays the current picture.
However, i wasn't able to connect to it using my own code.
As far as i can tell, the camera doesn't respond to HTTP or RTSP requests, on any port (probed it using nmap). i also wasn't able to find any mac app that can connect to it.
I suspect the camera is somehow transmitting the data via a RTP stream, but i wasn't able to connect to it.
I've tried other similar cameras, but they seem also to operate in the same unknown protocol.
Ideally, i'd like to find a solution to connect to it from something like VLC, and then use VLCKit on my iOS app to connect to it.
Thanks!
If you just want to get the stream from the camera to your app, there are other ways.
Each IP Camera should have been configured with RTSP URI by the manufacturer. Check in their website or in user manual. For example: rtsp://192.168.0.5/video.
If you couldn't find the URI, refer this link for "How can I find the right RTSP URI for my IP camera?": http://ipcamlive.com/faqs.
Related software download link: https://sourceforge.net/projects/onvifdm/
Using this RTSP URI, you can use any RTSP player example and get the camera feed to your app.

Live audio streaming between mobile phones

We are trying to implement live audio streaming between two bluetooth enabled mobile phones. Is there any package which supports the live audio streaming in J2ME? Looking forwards for the response.
Audio streaming via Bluetooth requires one device to be the source and the other to be the sink, typically mobile phones implement the source role.
So it is not possible unless you add new the required profile role support on the phone.

iOS RTP live audio receiving

I'm trying to receive a live RTP audio stream in my iPhone but I don't know how to start. I'm seeking some samples but I can't find them anywhere.
I have a Windows desktop app which captures audio from the selected audio interface and streams it as µ-law or a-law. This app works as an audio server that serves any incoming connection with that streaming. I have to say that I've developed an Android app that receives that stream and it works, so I want to replicate this functionality on iOS. In Android we have "android.net.rtp" package to manage this and transmit or receive data streams over the network.
Is there any kind of equivalent package for iOS to implement this? Could you give me any kind of reference / sample to do this, or just tell me where to start?

How does the GoPro pair with an iPhone?

I am trying to build an iOS application which is able to receive a live data stream from a camera and displaying the stream on the screen. The connection between the camera and the device (iPad/iPhone) should be P2P, like the GoPro connects to the iPhone. Meaning the camera should open up a Wlan and the iPhone should be able to connect to it. My first question is how this technique is called to do further research. The second one is can this be achieved with a raspberry pi (with camera module and wifi dongle) or any other microcontroller.
Thanks in advance!

Resources