How to make Tomcat stream media ?

Posted on 2011-04-22
Last Modified: 2012-05-11
Hi All,

I am entirely new to streaming implementation. I have developed some RESTful web services using Jersey/Tomcat. There are few cases where I need to send audio/video files to the clients, which uptil now I have been sending as a file fr download - now I want to stream these files.

Do I need to write some code for this ? Or I need some third party solutions ...I have heard about Wowza / Darwin / Red5...But I dont know if they can be integrated with Tomcat and my existing services. Any third party solutions need to be free / opensource, and they should support both audio and video streaming. In the near future I need to add transcoding support too..for which I am planning to use Xuggler. So it would be good if the server is having such support.

Any pointers would be appreciated. Thanks !!
Question by:WinOrLose
    LVL 27

    Accepted Solution

    Tomcat and any Java servlet is not good for streaming and transcoding (due to high CPU usage), so I would suggest to use either 3rd party software to stream video/audio (say Red5).
    For Red5 you may try to use ApplicationAdapter: to stream video from servlet.

    I never did it, but I guess this is the right way.

    LVL 27

    Expert Comment


    Author Comment

    Red5 is supporting only flash format. I need to have both audio and video support. Plus I need to have transcoding support too. Is there an option of using Flumotion ? How should I go for it ?

    Author Closing Comment

    I needed integration tips with REST, any code would have been more helpful

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    Viewers will learn how to create burn videos onto a DVD using Nero Suite including creating a DVD menu and chapters.
    Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now