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!)
Related
I am a newbie in network programming in C# and I want to create a proxy server which can be used to restrict users from connecting to internet if they have exceeded the download limit.
My current config is ---- User -> proxy server -> wifi router -> internet.
I searched everywhere and I found that HTTP proxy can be created but it is very hard to create a HTTPS proxy in C#
Even the c# library like Trotinet and mentalis does not support the HTTPS proxy.
But I found that there are many library in JAVA like little proxy that support HTTPS connection.
So, Is it possible to create a fully functional proxy in C#? or should I try switching to JAVA?
One More question. Can I create a simple TCP client read its networkstearm and forward that stream as it is to wifi router without need to read its header or anything, will this method work? Just a guess, sorry for noob question.
Thanks
Answer for your first question : YES, you can create full functional HTTPS proxy with C# (similar to Fiddler). No need for changing to Java. Just for testing purpose you can use Fiddler Core. Fiddler core is a complete HTTPS Proxy written in C#. If you have time and knowledge, do reverse engineering by using reflector on fiddler core and get some idea about implementation.
Last commit on Trotinet has a shy implementation of HTTPS pass thru. So unless you dont want to decrypt the https data, Trotinet will be a good choice.
-Kumar
I need to send a few strings from a java project (Windows or Ubuntu) to an Android device via WiFi means. I found a few sources on how to send files from Android device to Android device but I didn't find anything cross platform. Can someone suggest me a way to do it, or a lead about where to look ?
I am open to alternate methods, but as always the simplest the better.
Thanks in advance.
I would write a simple REST web service for the android client to check. That way if you wanted to for whatever reason you could move it to the cloud and do it remotely. That is probably the simplest way I can think of as well.
I would suggest send it through TCP connection.
Because Both Java and Android have ServerSocket class and Socket class.
You can set your computer to be host by using ServerSocket and your Android device to be client by using Socket.
Then after connection, you can use getInputStream() and getOutputStream() methods of Socket to transfer data, including Strings, Objects and even Files with suitable combination of FileInputStream,ObjectOutputStream etc.
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
I want to desing java application that montior internet activity. Let consider I open different browser and that sending and receving data from internet. My application requirment is that to monitor that sending and receving packets. So my application working as services that generate log of internet surfing. How this posible in the java?
Try jNetPcap. The site is full of examples and tutorials.
There are a few things you can do. If your end goal is to simply monitor the traffic, use an existing application like Ethereal or Wireshark.
Otherwise, if you want to write your own application, have a look the the Jpcap and/or JNetPcap libraries. They allow you to bind to network interfaces and sniff / analyse all the packets that pass through those interfaces.
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.