So I am trying to stream a webcam feed from my computer to my android phone. I am using a simple forwarding server to connect the two so that I don't have to worry about home network IP firewalls ect. I am using FMJ to capture the video feed and was thinking rtsp protocol would be best because android supports reading it. My problem is I dont know how to forward the information via the server, is it as simple as forwarding UDP packets? all programs involved are implemented in java btw.
Use Netty. It is very easy to create an RTSP server with this library. For hints see the sources here.
Or you can port my library which is written in C#
http://net7mma.codeplex.com/
CodeProject article # http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp
Related
I have a code running in router that sends UDP packets(using Sendto() function and a string of data) to a particular server whose IP address and port number I will mention in my code.
I want to deploy a server application that could receive a UDP packet and store its information on server or somewhere else not sure right now.
I have decided to use Google app Engine for hosting my server side code which most probably will be having something like recvfrom() function to receive string.
So how and by using what API's can I start developing my server side code.
Google App Engine has a Preview release of a Socket API, but it does not let you create listening sockets. See Limitations and restrictions section at https://developers.google.com/appengine/docs/python/sockets/
You cannot create a listen socket; you can only create outbound sockets.
You can use Google Compute Engine to run any reasonable software on Google's cloud platform, including programs that receive UDP datagrams. You must always pay for Compute Engine instances.
According to the newest edition of App Engine Socket docs for Java, if you're using java 8 runtime you should be able to use java sockets without limitations:
Applications in the Java 8 runtime default to using native Java
sockets with no restrictions: Google recommends that you keep this
default.
That means that it should be possible to use java.net.DatagramSocket or java.nio.channels.DatagramChannel freely to work with UDP.
I need to make a troubleshooting tool in java
From the java code, I need to communicate with tethereal (linux commands) to help me generate a .pkt file. The .pkt file will contain all the contents of the communication that took place between the client and the server- i.e. all the packet communication between the client and server.
how should I do that?
Do you know WireShark? That is a cross-platform Network Packet Capturing application.
The idea is that it captures all packets (TCP and UDP) that passes one network device (eg: WiFi card) and you apply a filter on the port that your application uses, and eventually an IP address. Very useful tool.
If you really need to do it in java you can use http://jnetpcap.com/ which is a wrapper for libpcap which works similar to tethereal.
We already have a C# server implemented with sockets.
We want to make the application on android but we can't find a way to connect to the server, the design we want to make is using html5 and javascript, because one of us has a lot of experience using this ones, any ideas/suggestions about how can we use java sockets or something else to be able to communicate with the server?
Thanks,
Sas Gabriel
I feel pretty stupid asking this, but I just couldn't find anything on the web that helped me.
Is there a way to connect to an RTMP stream from within a Java application?
I just need to connect and read a few bytes. I even don't need to play a video or anything. It's only for monitoring the connection.
I tried using java.net.URL and even red5's rtmpclient and rtmpconnection, but couldn't figure out how it could help me.
i found JUV RTMP Client that allows connecting to a RTMP Server.
it has the following highlights:
1.RTMP/RTMPT/RTMPS/RTMPE/RTMPTE protocols support (both AMF0 and AMF3 encodings)
2.Remote method invocation
3.Remote shared object management
4.Play and publish audio/video streams (supported by the server) (!audio/video codec implementations are not included!)
I am doing a project which consists of a video-conference system in Java and using the RTP protocol. The problem is that I can not pass the stream to the clients, that I capture in my webcam. I already turned off my firewall, but still it does not work.
Someone can give me a hand?
Try to look at the network traffic, e.g. with Wireshark.