How to stream audio / video in java?

Hello.
I would live to develop a java application (JavaEE, with tomcat or JBoss) that could stream audio / video over the Internet, on a controlled matter.
First, I would have to embed a flash player, correct? Need suggestions on one, paied or free.
My questions are: How can I have the flash player stream audio to users by downloading it from a java app server, if the user has a session and is logged in, etc? (picture myspace here)
Also, how do I measure network traffic in Java? (The flash player of each user will stream the songs, I'd like to know how much bandwith is going around).
The reason that I'm asking this here is because I have no idea of which forum to ask this.
I have been a Java app developper for the past five years, so coding won't be a problem, I just don't know which API / Frameworks to turn to.
Thanks for all your help.
Regard,
Carlos.

ragedd wrote:
First, I would have to embed a flash player, correct?No. You're just taking ideas from other popular streaming sites. It's certainly not a requirement.
My questions are: How can I have the flash player stream audio to users by downloading it from a java app server, if the user has a session and is logged in, etc? (picture myspace here)The same way you would authenticate any website. Usually a database and a challenge/response. If they're not logged in, then instead of writing out the content, write out a 403 status code (or do something more graceful, such as redirect them to the login page).
Also, how do I measure network traffic in Java? (The flash player of each user will stream the songs, I'd like to know how much bandwith is going around).Just keep track of how much data you send to the OutputStream.

Similar Messages

  • How to  stream audio/video to real Audio Player

    Hello
    I am planning on doing a project on streaming audio/video onto Real Audio Player . I am very new to JMF . I would appreciate some pointers on how to start off. I ahve read the documents but am not able to get started right .
    I wanted to know the following :
    1. Isnt the RTP streaming streaming for live audio or video ? If I want to stream something which I have stored in my local machine then how do i do it - do i need to use RTP ?
    2. I undertsand that if i need to stream the audio/video file I need to convert it to a format the Real Audio Player supports. How do i go about that ?
    Any help would be greatly appreciated!!!
    Thanks in advance
    Shailaja

    JMF doesn't have any support for Real media. Real has gone open source with their Helix Community, so maybe you could find some useful information there: http://www.helixcommunity.org

  • Streaming audio-video on the mobile device

    Please, I must do the streaming audio-video on the mobile device using a server standard.
    I must to program the application for the server using j2se:in this case how i can send the file audio/video?This file have specifies classes?
    For the client i must using the j2me:in this case how can receive the file audio and creating the player?
    Thanks.

    Hi, please help,
    I have problem in this area also,
    am intending to stream audio and video data to mobile phone using j2me for my bs project.,
    is that true, midlets can only 'plays back' one file at time specified by url?
    I want to store many files in database( e.g ms access), and call them to midlets, to make some how interactive and real,because i have tomcat server installed in my pc.
    is this possible?
    How can i call file stored beyond path of WTK ?
    can i store audio/ video file in ms- access?
    Please, please help !
    thanks in advance.
    Message was edited by:
    nbkamani

  • How to stream audio/vide​o files on bb playbook and create different play lists from another pc and/or external hard disk drive connected with a share router

    hi guys
    i wish to use my external hard disk drive (1tb) connected with a belkin share router as main storage drive and stream audio/ video and other files on bb playbook through wifi.
    also wish to create different playlists directly on playbook.
    please tell me guys how can I do it.
    thank you in advance

    Try this...
    http://forums.crackberry.com/blackberry-playbook-f​222/how-stream-video-music-more-your-mac-pc-your-p​...

  • Live streaming audio/video

    I'm looking for advice on how to stream live video, full
    screen at high quality 640x480 30 fps. I need to be able to carry
    on a teleconference between two instances of the program, but also
    support 640x480 at 30 fps. What programs might be needed (encoder?,
    server?)

    Hi tony45371,
    The replies from in2mobile are 100% correct.
    For live video, some server is required. Flash Media Server
    is the required server offered by Adobe (there are competitors
    including open source competitors to Flash Media Server). Also an
    alternative to putting up your own Flash Media Server, may CDNs
    offer Flash Media Server services. You can find a list of CDN
    partners here:
    http://www.adobe.com/products/flashmediaserver/fmsp/
    Are your live events webcasts (e.g. 1 presenter, w/ many
    attendees)? Or 2-way (e.g. multiple presenters)?
    I assume that you require 2-way since your post said "I need
    to be able to carry on a teleconference between two instances of
    the program".
    Following below are links into the browsable version of the
    product documentation (adobe.com/livedocs). Easier to read PDF
    versions can be downloaded here:
    Flash Media Server Developer Guide
    http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/flashmediaserver_dev_guide.pdf
    All Flash Media Server Documentation
    http://www.adobe.com/support/documentation/en/flashmediaserver/
    2-WAY VIDEO CONFERENCE
    For 2-way you can find a related sample application (with
    explanation and downloadable source code) here:
    Video Conference with Flex & FMS
    http://renaun.com/blog/2006/11/08/147/
    Video Conference with Flex & FMS, Live Demo and Source
    Code
    http://renaun.com/blog/2006/10/28/139/
    You can also find additional code examples in the Flash Media
    Server product documentation here:
    http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/00000082.html
    (Above link, in the PDF version, is in Chapter 4: Developing
    live video applications)
    1-WAY WEBCASTS
    For live webcast events, Flash Media Server includes a free
    companion program "Flash Media Live Encoder 2.5" (aka FMLE). FMLE
    offers higher quality video (H.264 & VP6), and audio (MP3 and
    with a 3rd party plug-in AAC). Details on FMLE here:
    http://www.adobe.com/products/flashmediaserver/flashmediaencoder/
    Following is a link into the product documentation on using
    FMLE 2.5 w/ FMS3:
    Using the live service
    http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/00000031.html
    (Above link, in the PDF version, is in Chapter 2: Streaming
    services)
    You can also find an article written against the older Flash
    Media Server 2 with an earlier version of FMLE here:
    http://www.adobe.com/devnet/flashmediaserver/articles/webcasting_fme.html
    Please post back regarding whether the above answers your
    question, and if you find it helpful :-)
    Best regards,
    g

  • Streaming Audio/Video/Pictures to Apple TV2

    I just updated my iPhone 4 to iOS 4.2.1 and have ordered an Apple TV2. Can or will the phone stream audio/video and pictures directly to the ATV2 or do I have to set the ATV2 up with my wifi router? I just downloaded the ATV2 manual, it doesn't say that the phone will stream directly to the ATV2. It does show how to connect with a wifi router though.
    Thanks,

    The 5er Driver wrote:
    Thanks for the info guys. If video and/or pictures are moved from the Camera Roll to the Photo app they should stream with AirPlay then, correct?
    photos can be streamed whilst in the camera roll.
    videos would need to be in the ipod section (ie like a movie or tv show).

  • Can someone tell me how to stream live video?

    Can someone tell me how to stream live video to my ipad?

    Someone could give you better and more exact information but you didn't include the model number of your computer. But I can give you a pretty generic answer. At the top of this webpage you should see Product Support. Click on Laptops and then select which model of Toshiba computer you own, ie Satellite, Tecra, etc. Finally type in the model number of your computer. Select the exact model number and click the red Go button to the right. Click the Downloads tab and look thru the different drivers for this computer. Make sure that the new video driver is newer and has a higher version number than your current video driver. If it does, click the Download button, click the Run button and let it do the installation. Afterwards, reboot the computer so that the latest drivers are fully installed. Try again with that game.

  • How to load Audio/Video in TLF3.

    Hi All,
    Is audio/video file supported by Flex TLF3 ?
    Thanks..

    ragedd wrote:
    First, I would have to embed a flash player, correct?No. You're just taking ideas from other popular streaming sites. It's certainly not a requirement.
    My questions are: How can I have the flash player stream audio to users by downloading it from a java app server, if the user has a session and is logged in, etc? (picture myspace here)The same way you would authenticate any website. Usually a database and a challenge/response. If they're not logged in, then instead of writing out the content, write out a 403 status code (or do something more graceful, such as redirect them to the login page).
    Also, how do I measure network traffic in Java? (The flash player of each user will stream the songs, I'd like to know how much bandwith is going around).Just keep track of how much data you send to the OutputStream.

  • Unwanted synchronization when streaming audio&video

    hi,
    i'm streaming audio and video, both of which are created with separate Processors. i'm playing them back on the client's side with separate players on separate ports. despite all this, when i pause the audio, the video pauses too!
    any suggestions?
    Thanks in advance :O)

    This is suposed to happen if the streams received have the same CName. I guess if you are able to send two different streams with 2 different CNames they won't synchronize. But I still don't know how to do that... :)
    Also, less useful but still a fact, if you receive the streams in two different VM's that won't happen either... :)
    Bira

  • How to Make Audio Video Broadcasting Programe using JMF

    hi i m newto java programing i wan to know can any one help me out how to transimit audio and video over netwrok from one pc to other computer voer the network . i m using my webcam to transmit video can any one of u email me the code if any one has made such application like this .. my email is [email protected]

    Well you've found the root of your problem. It's not necessary the JMF. It's when you make a jar file, you need to include the dependencies. I don't think it' legal to include the JMF in a program you sell or distribute, so be careful there.
    However, to include dependencies in jar files is not a hard task. The simplest method is to unjar the dependency and place it at the top or your classpath; then make a jar that includes both your program, and the dependency.
    A more long term solution is to use a build system such as ant or maven to create the package using available scripts or plugins. The "Uberjar" plugin for maven comes to mind.
    -vito

  • Use FMS & Actionscript to Stream Audio/Video and control (powerpoint) slides

    Hi there,
    My compnay provides webcasting services to numerous clients, and we currently use Windows Media Encoder as our base software for these projects.
    However, I'm interested in switching to Flash Media Server, but need to figure out one issue and how to implement it in such a way like how we are currently using Windows Media Encoder.
    We need a way to stream out a live audio/video feed AND have a way to control a presenter's POWERPOINT slides and have them advance by our command when streaming live.
    Basically, the way we do it is we will stream out audio/video from WME and also use the encoder's SCRIPTING functions to send out a "url"  from the encoder to the actual page in which the viewer is watching the live embedded stream.  On that page is an embeded/internal frame which we can specify (using the id/name) that the url gets loaded, and this actually advances the slides (or more so pulls up a pre-created html page of the next slide in the person's powerpoint, which is actually a screenshot or exported image of that slide and embedded within a specific HTML file and hosted on the same server as the embedded player/html file)
    Would there be a way to send out this same type of script using FMS?   I've been playing around with it and notice the interface itself does not have a built in scripting function like Windows Media Encoder does. However, I did read somewhere that it supports ActionScript... but I have no clue how to implement this feature.
    I am just curious how it might be able to go about doing this?  Is there a way to use an [action]script with FMS and have it send out a URL to a specific frameset embedded on the same page as the Flash Media Encoder Playback?
    Hopefully this make sense and that someone can point me in the right direction.  Switching to FMS over Windows Media Encoder is the way I would love to go, just need to figure out how this could be done.
    Would a better method be converting the powerpoint slides to a swf or flv file, embedding that file within the same page as the FMS playback, and somehow using a script to "advance" the frames/slides/scenes within that file?
    I also heard something about Flash "Shared Objects" and how this could be a way of controlling a swf file remotely.....
    Could anyone give me some advice and know a method that I could use to achieve this type of implementation?
    Any help is GREATLY appreciated!   Thanks!

    FMS (the interactive version, FMIS) has complete scripting support.
    What you want to do can be done with FMS, and there are a lot of ways you can approach it. Converting to .swf can be helpful, as it means you have a single resource to load rather than a bunch of individual slide images (the flashplayer can load .swf, jpg, gif, png). Rather than embedding, I'd opt to make it an external resource and load it at runtime... that would keep the player application reusable.
    To get an idea of how to use server side actionscript, see the getting started portion of the FMS 3.5 dev docs
    http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/
    Then, see the SSAS docs for the following classes in particular:
    The Client class for Client.call()
    The Stream class for Stream.send()
    The Shared object class
    The Application class for BroadcastMsg()
    The docs give some general overview for the usage of each. The best choice really depends on your deployment architecture and scalability requirements.

  • Streaming audio/video issues

    When I attempt to play video (Hulu, YouTube, Netflix) or audio, my IPhone 5c goes into this continuous buffer mode. How can I get audio/ video to stream again?

    You are joking right? establish an ethernet connection?
    We try not to joke on the forums. If you are using 802.11n 5 GHz, that might do it if the Blu-Ray player and Time Capsule have close to a line-of-sight relationship. If 5 GHz won't do what you want, that tells you that the connection has insufficient bandwidth to provide the connection quality that you need.
    If you are using regular "n" wireless at 2.4 GHz, ethernet will have about 8 times the bandwidth capability than wireless. Using 5 GHz, ethernet will have 3 times the bandwidth of wireless.
    You may not want to consider ethernet, but it's hard to argue with physics. I've tried to stream high definition sources over a very good wireless network, but have not found a way to do this and obtain the performance that I want. But, perhaps another user has found the answer and will post to tell us about his workaround. I will be watching this thread.

  • How to create audio, video, and photo in a list view format

    I'm creating a webstire entirely out of Flash using CS5 for a paranormal investigation group. In the past, using a Website Tonight template from GoDaddy had placed either an audio, video, or photograph with text above each item discusssing the content. Now, they would like this type of feature in the Flash website. I'm new to Flash, but seasoned in many other Adobe products ... not that this helps ... much!
    Anyways, the website is looking great aside from this one set back, so I'm hoping someone out there can give me a helping hand. I'm willing to purchase a third-party template, but to incorporate that into our Flash file, seems daunting.
    AUDIO
    We need to load an audio that can play, pause, rewind, loop, and stop at the very least.
    Then have text describing the situation around the audio.
    repeat ... and so forth ...
    New audio will be added to this section every week or so, and all the components need to scroll as the screen fills up. When adding new audio, we would add the new audio and text to the top of the list, pushing the remaining audio files down.
    VIDEO
    We need to load video footage with all the button features needed to play, stop, etc. I have found adding video quite easy, but to get the player to move with the text as the frame it is contained in scrolls down is another story. How do you do that?
    Text describing the video contents will be above or next to the video player.
    repeat ... and so forth ...
    New video will be added to this section every week or so, and all the  components need to scroll as the screen fills up. When adding new video,  we would add the new video and text to the top of the list, pushing the  remaining video files down.
    PHOTOS
    ditto as others
    Thanks!!

    As mentioned, building a custom application can be tricky, especially if you are not very familiar with Flash.
    So you want a Web page with an audio player and selection list at the top (or where ever) and then a video player section, along with its playlist, and then at the bottom of the page you want a photo display area... Is that correct? and the scrolling you mentioned is because the page needs to be long enough to hold all 3 components? is that right?
    Have you instead considered just using 3 different frames, one frame for each component and simple buttons to jump from audio to video to photos?
    Or, skip the scrolling in Flash and let the html/css take care of the scrolling, just like any normal Web page. Just make the .swf as long as needed to display all your content.
    Since you are new at this type of a project, I'd suggest you start small, take the project in steps... just build the audio player... then the video player... then your photo slide show..
    Only after you have 3 working moduals would you but them together into one .fla
    And yes, learn to use xml for ALL the data, audio, video, and photos.... very easy to update without having to re-publish any of the Flash.
    Here is a good source for tutorials:
    http://www.gotoandlearn.com/index.php?currentpage=11
    Flash and xml
    http://www.gotoandlearn.com/index.php?currentpage=13
    learn to use NetStream to play your videos, much more versatile and powerful than using the FLVPlayback component
    But learning how to incorporate xml into your Flash project is very important in a project like this. And then broken down into 3 components, it's really not that tough to build a project like this.
    Best wishes,
    Adninjastrator

  • How to stream audio in Windows Phone 8.1?

    I have a Windows Phone Silverlight 8.0 app I want to update to 8.1 using WinRT. It streams audio in the background.  In Silverlight, I used
    BackgroundAudioPlayer to set the Track to a Uri.  It's not clear how to do this with
    MediaPlayer in WinRT.  I don't think I can just use a Uri.  Instead, I wonder if I have to use
    MediaPlayer.SetStreamSource(IRandomAccessStream
    stream).  If so, I don't know how to get an IRandomAccessStream from a
    Uri.  I want to stream from a Uri on the internet over HTTP, not from a local file. Any help?

    Refer following links to stream audio in background in Windows Phone 8.1 Runtime app.
    https://code.msdn.microsoft.com/windowsapps/Background-Audio-in-WinRT-344bcf4d
    http://blogs.msdn.com/b/johnkenn/archive/2013/12/31/supporting-background-audio-in-your-windows-8-1-app.aspx
    Thank you for thinking about my problem. I may be mistaken, but I think the above links refer to Windows 8 apps, not Windows
    Phone 8.1 apps. I'm under the impression that background audio is done differently in Windows Phone 8.1 from Windows 8. The
    Background Audio Overview for Windows Phone Store apps explains more. 
    It's a good overview, but does not explain how to play audio from a stream rather than a file.  That's what I'm stuck on.

  • How to stream YouTube video in PDF document using ID 5.5?

    I'm using ID 5.5 and know how to insert a video into a document using the Media palette, "Insert video from URL" option. However, I need to stream a YouTube video in an interactive PDF document, and when I try to insert the link from YouTube into the "Insert Video from URL" box, ID doesn't recognize it. I assume this is because YouTube video links don't end with a typical video format file-name ending, such as ".mp4" or ".mov"
    Has anyone been able to stream a YouTube video into a document using ID 5.5? If so, how did you do it?
    Downloading the video and inserting it as a regular video file isn't an option because we need to keep the PDF file size down.
    Thanks much for any advice you may have!

    It can't be done. A YouTube video cannot be streamed in any digital publishing media—PDF, EPUB, or DPS.
    There are applications which claim to be able to convert a YouTube video into a real digital publishing format like H264-encoded MP4 (preferred), but you'll have to investigate those on your own.

Maybe you are looking for

  • ICal displays twice the same date on the calendar

    Ater upgrading to 10.6 and 10.6.1, iCal messed up previous calendars, duplicating a day in the calendar. Specifically, in my case, "Saturday, 17th October" appears twice, one after the other (in portuguese). This affects all future events, which now

  • Can't remove album rating from an album

    For some reason I can't remove the album rating from one of my albums in iTunes 7.6. I can change the rating, but if I swipe the cursor all the way to the left (which removes all stars on other albums) I get weird, hollow stars that then revert to a

  • SQL within PL/SQL block

    This question sound funny. I just want to make sure this rule. In Oracle database before 10g, we can only use DML and transaction control code within PL/SQL block. We can not use DDL or other control languages within PL/SQL block. How about 10g? can

  • Seeking HPDocviewer.exe and NotebookDocs.exe

    Seeking install file(s) for HPDocviewer and NotebookDocs for a dv6 series. These were not installed, they're not in recovery partition either. Found an old docviewer on HP ftp site but they use html files, the new versions use pdfs. The Help and Supp

  • Formula Help please2

    I am using the formula, If(A3<1," ",F2), to make cell B3 blank until a date, such as Jan 9, 2008, is entered into cell A3. It works but Numbers flags cell B3 with a 'blue triangle' which gives the message "formula compares a number to a date". What c