Create RTMP streams for the client requests using RED5 server application - java

I am working on code snippet where I want to create an RED5 rtmp stream using RED5 server application. I have been searching since 5 days to get a good tutorial about the same.
All the tutorials or questions on the stackoverflow discuss about either RTMP client side code or isssues with streaming using oflademo.
What I have achieved ?
I have successfully installed and ran RED5 on my ubuntu box.
I have installed RED5 Eclipse IDE plugin and created one sample project with RED5 runtime code generation
I could see oflademo app streaming videos on rtmp
What I want to achieve ?
Have a server side jsp page showing number of connections i have received.
For this i did one small test like I defined welcome-file in web.xml withing the project i generated using plugin. But i couldnt reach to that file but at the same time if I create a project using simple eclipse wizard for tomcat my welcome file thing works.
After getting each request I want to start an rtmp stream for that client.
I tried reading code of oflademo but really couldnt understand the code. Most of the things are commented or probably something I am missing while reading that code.
Thanks in advance.

One solution I found is to go back to 0.9 version, 1.0 RC has some issues. I switched back to 0.9 and everything seems working.

Related

JavaFX - file (video) upload

I asked this question before but it was unanswered for a week or so I think so I decided to ask again but with a different formula.
I have a JFX desktop app. one of the features of one of the modules contains a video upload to the server. I searched this around a lot but the solutions I found are in two categories
using servlet / jsp on the server and service in the desktop app
copying the file locally (not what I want)
now I am ok with havign a service doing it the upload that's what I expect but I dont see the need of having a deployment on the server plus I already have a webapp. Is it possible to just have a webservice in the server and call it in the desktop app code? I haven't found anything on this.
Yes, it's possible and preferable choice.
The potential solution I see would be:
deploy a file REST service on your File server where the videos would be held.
Example Rest service in Java: https://github.com/polopolyps/fileserver
Then in your java FX application you simply send user file (a video) using REST lib, see: http://square.github.io/retrofit/
and Voila you have your functionality.

file upload http header help or example java

Okay so i am working on a special little project and i require some help. I have started working on a Java webserver written using only java libraries. The aim is to be the simplest webserver written in java around. I have been very successful lately, but recently i have run into a problem with uploading files to the server. The server recieves the headers but i can not see the text from inside the file. Any help would be great! Thank you
you can see the website hosted by the webserver here: blends.hopto.org/beta
One of the problems could be due to missing enctype="multipart/form-data" in the form that is submitted. Also in the servlet side this article was helpful while I did a file upload to the server: http://docs.oracle.com/javaee/6/tutorial/doc/glrbb.html
It turns out the file was just written after a newline feed

How can I stream video to a browser using Java/Spring?

We a have jboss server running and have a basic web setup using Spring but now I would like to stream video into the browser. I am trying to use xuggle but then I read on their website that you can't put it into an Applet or use it with java webstart, so I'm assuming that means I can stream to a browser, is this assumption correct? If so does anyone else know any libraries or how I should go about doing this? If you need any more info or have questions I'll be happy to answer although I'm very new to streaming video and relatively knew to Spring.
UPDATE: So I'm able to generate a video using xuggle, and then I can embed that video in my html code... but I can't generate and stream at the same time. Does anyone have any ideas how to make xuggle push date out to my tomcat server?
You may want to look at Red5 media server.
Since you are doing jsp, just have your code write out the HTML 5 video element. That will provide basic video functionality. This will work in all HTML 5 compliant browsers as well as all mobile devices.

Using RED5 to record video stream

First of all - My English is very bad! so I hope you will understand what i'm asking...
I'm having difficulties in understanding how to use red5 to record stream from the client webcam onto the server side. I have red5 installed on a remote unix server, and i want to enable the users in my website to record stream from their webcam and store it on the server.
I have knowledge in javascript/php/java, and I know that I need to RTFM. I did try to search for some helpful information but i couldn't find any leads regarding my question.
Could you please help me with the first steps like how to connect to the remote server (I'm using Eclipse IDE for Java EE Developers).
Thank you
I advice you to take a look to openmeeting ,it's open source and use RED5 as media streaming server, and provides recording feature from client, and many other interesting features related to webcam.

How to talk to Tomcat server from a PHP application

I am developing a new report engine for my company, our main web application is writing by PHP 5 and running on an Apache server. The new report server which I designed to use Apache FOP 1.0 ruing on Tomcat7,so far I created My own XSLT stylesheets and I can manage to generate a PDF report from the URL and let it display in my web browser.My goal on this project is to generate dynamic report from xml file which export from the PHP application.
Could anyone explain to me the logic behind How I can give those two talk to each others. I understand I could POST the XML and XSLT as string to the report server and POST it back the result I want(like PDF).
I know this will need Java involved,and as a PHP dev. I really don't have much background about Java,if you could show me some examples or links, it would be much appreciate.
I am using Saxon-B with Fop 1.0 on Tomcat 7 for the report server.
if you need more info from me,please also leave a comment. I will add it soon.
Thanks
There are two things your going to need to study.
http://www.w3schools.com/php/php_ajax_intro.asp This is a tutorial on using the XHR object from php. You should go through that. Also, if you aren't familiar with the XHR object, I would read this as well: http://www.w3schools.com/XML/xml_http.asp
You're going to have to create a servlet capable of responding to these requests. There are various tutorials on how to create a servlet.
Here is a link to a youtube video I fall back on when I forget how to do servlets: http://www.youtube.com/watch?v=EOkN5IPoJVs
In the video, he just uses straight up javascript; so you're php code is going to be doing what the javascript did in the video (item 1 on my list).
The video uses an older version of eclipse (I think ganymede), but it is pretty close to the same process in the newest version of eclipse.
Just to be blunt, this isn't something you're going to be able to figure out and make work properly. You've probably got at least a day to a weeks worth of learning here depending on your experience and aptitude; and this will only get you something basic. The servlet you make won't be secure, it won't have user authentication...my point is don't take anything for granted.

Categories

Resources