How to get data through audio port in android - android

I want to get data using serial port via audio jack. I don't have any idea about this.
I found the app square they read the data through port.so does any one know how to get data or is there any projects similar like this.

Romotive, a project that helps you make robots out of smartphones uses the audio jack for data transfer, and I think the software is open source.

Related

How to connect to cctv using p2p?

I just wanna create an app that displays the live cctv through nvr using p2p connection but I can't get any details about what is the data I am gonna get so I can handle. It is the first time for me to use p2p connection and dealing with cctv cameras.
My question is how this data should look like I am not gonna mention a certain company but for the majority of them how this should be?
I am using flutter/dart. I tried searching for docs but what I get is only apps to do this and I wanna know the mechanism.
Thanks in advance.
You will need to decode the video stream and display the images on the screen. You can try video_player or low-level library such as flutter_ffmpeg inorder to decode the video stream and display it on the screen.

How can I publish a video stream at red5pro in android?

I already have a http video stream coming from an IP camera in my android hotspot. I want to publish that stream in a red5pro server or in another media service. How can I do that?
The red5pro sdk examples only use a camera from android. I want to use a http stream came from IP camera connected in my android hotspot.
Using a player like VideoJS, set the tech order to prefer HTML5 over Flash and then ensure that you're using the appropriate URL for the stream.
An example URL patter would look something like this:
http://server:5080/live/hls/streamName.m3u8
Note that it ends in .m3u8, has the right port and uses the context and app names.
For more information please see our documentation page. Please let me know if this helps you or if anything isn't clear.
https://www.red5pro.com/docs/

How to transfer a Video file From device to device

I want to develop an App which is just like snap chat,to send video files to friend.Is there any third party API to do this.What are the possible ways?
One way is using Sockets. You could basicly send information how many bytes the file has and then transfer it to other Socket where you will read it. You should take a look at this question.
Edit:
In this solution you don't need any third party, it is java api.
You can use sockets but you can also use the PubNut API if you want focus in your app and leave the networking to a third party.
I hope this help you.
Socket is good for transferring files, but i think you cannot transfer large files. And your application will allow lots of unwanted/unauthorized video being transferred between users.
You need to learn about XMPP protocol and Open Fire Server, which are widely used by applications like WhatsApp (not sure what they currently using).
This may help you i think...
Try: Here is the example link to transfer files usind asmack and openfire server http://harryjoy.me/2012/08/18/file-transfer-in-android-with-asmack-and-openfire/

data transfer between an android and an ios device

I want to transfer some data (app specific data) from an ios device to the android device (and vice versa) running the same application for respective platform.
I understand the easiest way to achieve this is to have a relay server which will take data from one device and pass it on to the other.
However, i would prefer if this could be achieved on a wifi network (peer to peer) without using any kind of server in between (the way they do in multiplayer games).
I tried gamekit but its supposed to work only on ios devices and cant support android. Tried alljoyn as well but its not available for ios yet.
Anyone who has tried this or has some idea on how to proceed are most welcome with their thoughts....
I don't ever try that.... but may be you can do that using XML file...
so
Make the XML file of data which you want to send...
Send that file using bluetooth or using wi-fi programatically...
On another device you can fetch data from xml file..
and that's how you can make this happen....

Transfer file from android(nexus1) to other server using GPRS

I want to write the application which will transfer file from android (nexus1) to some other server by using GPRS.which protocol should i use and how to implement that?
HTTP. It's the most reliable protocol on a mobile device. There are plenty of libraries (including built into Android) that will aid you in that, and I'm sure you can find some good tutorials on the net.

Categories

Resources