How to Stream live Audio and metadata

Helo there,
i'm trying to build some kind of online radio. Therefore i'll be streaming audio (mp3) in real time.
Ok,  so here's my problem: i have a play-list on my server and the idea is  for this play-list to play all day long, but on the client side  the user can only do play and stop the music.
The problem is  when one music stops and the next one starts i need the server to send  not only the new audio but also all the info about this file: duration,  author and music name, this way my player can show a play /stop and all  the info about the current music playing.
Until now i've only come across with video live streaming, but very  little information on how to do a live transmission of audio.
ps: the only info on streaming audio that i've found so far is about  audio on demand, but the way i want things to happen the client can't  chose the music.
any ideas?
thanks in advance!
Marco Monteiro

I think you can use Server-side Stream object to create a playlist and other functions on server-side.
Basically you can add your mp3 files to be played, basically just their names to an array object, and on the fly update it.
Now take first file from the array and create the playlist and keep on adding new files from the names array.
Also you can define onPlayStatus on your stream object to track when one song finishes and other starts.
Also since you have names of the files, you can set an interval based on current song's duration which would get triggered and send information to client of next song to be played. For this you can use onId3 method as mp3 files would not have metadata defined.

Similar Messages

  • Using iTunes/Airplay for streaming live audio/video on local network?

    I'm wondering if I can use iTunes to stream live audio and/or video to other computers, Airport Express, or Apple TVs on a local wifi network. I'm willing to jailbreak or hack anything if necessary.
    So this is what I am hoping to do:
    Camera-->Streaming Computer-->Airplay-->Local Wi-fi network-->Devices recieving audio/video

    This device should be doing UPnP by default so you will not need most of the info on this page.
    What the Link does have is the default access info and pictures.
    In the Wan page turn Off the DOS or SPI firewall. (it will have one or the other)
    Check in the Box to Disable.
    Save Settings.
    If this device is behind a Cable modem then also Allow it to Respond to Internet Pings on the same page.
    (this a Check the Box to Do)
    Save settings (Again if you did them above)
    7:30 PM Monday; April 28, 2008

  • 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 do I synchronise audio and video with an mpg file created in elements 11 ?

    How do I synchronise audio and video with an mpg file created in Premier Elements 11 ?
    The source files are VOB files, and there is no problem with those source files.  But after creating the mpg file, the audio can be out of sync by 1 second or even 10 seconds, and sometimes zero seconds (ie perfectly OK).  That varies.  The variation might be linked to some of the VOB files.  ie. some are OK, and some are not.
    Can I fix this automatically in Elements 11, or am I doing something wrong ?

    Hartwood,
    First, Premiere (both Pro and Elements) do not handle MPEG Audio perfectly - they like some files, but not all files with MPEG Audio. That makes a VOB a less-than-perfect source file. Still, with a bit of work, one should be able to edit it just fine. One of the factors is that there is a very slight block-size difference between the Encoded Video Stream and the Encode Audio Stream in a muxed MPEG-2 file. That often does not play into things, but can cause slight OOS (Out of Sync) issues. Also, both Premieres need to create all I-Frame files for the Video Stream, which is in GOP (Group of Pictures) structure, so what one sees on the Timeline is really a proxy of the MPEG-2 file's Video Stream. The Audio Stream must also be Conformed to PCM/WAV @ 48KHz 32-bit floating point, to be edited. That Conforming is perfect when one has PCM/WAV @ 48KHz 16-bit for the Audio Stream, but requires more work, when the Audio Stream is MPEG (one reason that some MP3's do not work well in Premiere). Several factors involved here, and a fair amount of work for the program. That is why DV-AVI Type II w/ 48KHz 16-bit PCM/WAV Audio works so perfectly.
    Now, fixing OOS might be easy, or might require a bit more work. This article goes into some workflows, that might be helpful: http://forums.adobe.com/thread/436751?tstart=0
    I can feel your pain, as I almost went crazy trying to fix OOS in a client's Project. They ONLY had the finished DVD, from which to work. The disc met the DVD-standards, so everything ripped/Imported fine, and when the simple edits were done (IIRC, there were four scenes, that had to be shortened, and then several Titles added), everything played fine in the Timeline. However, when I Transcoded that Timeline to be authored in Adobe Encore, two scenes went OOS. I went back to Premiere, and checked - all perfect there. I tried to judge the number of Frames that the Audio was out, in those scenes, and nudged them, tested, nudged, tested, and no matter what I did, I could never get the output files perfect, when Imported into Encore for authoring to DVD-Video. I tried DV-AVI, and letting Encore set the Transcoding automatically (usually a great way to work), I tried manually setting the Transcoding in Encore. I tried outputting to MPEG-2 from Premiere, and Importing that. No matter what I did, those two scenes were just OOS, and I could not even seem to improve them - it was like they were just locked OOS. I finally did some more editing, to break things up a bit, added a cut-away shot here, and there, and minimized the perceived OOS, but could never get it perfect. It was like trying to pick up quicksilver with a pair of tweezers!
    Good luck,
    Hunt

  • How can I separate audio and clips?

    How can I separate audio and clips?

    I guess you mean "audio and video clips".
    Then select the clip including both audio and video (while in the timeline) and press cmd-L: this unlinks the stereo pair from its video. If you want to work on each audio channel separately press alt-L while the stereo pair is selected.
    Piero

  • How do I relink audio and sound mxf clips brought into Premiere CC. (works fine in CS5.5)

    How do I relink audio and sound mxf clips brought into Premiere CC.  Didn't have this problem in CS5.5 so unsure why they unlink in CC.

    I'm getting so many weird results. Most go away by simply closing the project and re-opening and I only have 6GB memory but even so, I'm disappointed by what I thought was supposed to be more "world class" video editing software than Sony Vegas Pro which I found to be a lot more stable. Also struggling with differences between Premiere and After Effects. Every time I want to do something in Pro I seem to need to go to After Effects and vice-versa. After Effects lets me do more of what I could "just do" in Vegas Pro timeline, but it's hideous for lining up audio and having to render anything in RAM to even get a clue as to what a change has done.  Need to add Audition to the long list as well I suspect. Fun times!

  • Portable Wireless Server WG-C10 doesn't stream any audio and some video content after updating phone to Android Lollipop 5.x

    The Portable Wireless Server WG-C10 I purchased in 2014 doesn't stream any audio and some video content after updating phone to Android Lollipop 5.x.
    The WG-C10 firmware is the last version which is available and the PWS Manager software is the last version available in Google Play Store.
    There are no updates for the WG-C10 firmware nor PWS Manager software since 2013 or for Android 5.x (Lollipop) and I don't know if the WG-C10 firmware is the problem or if the PWS Manager software is the problem.
    BTW, I am still able to stream this content on my tablet which is on KitKat (4.4.x) so the files are not corrupted.  The only problem is with Lollipop.
    PWS Manager in the Google Play Store says it supports Android 4.0+ which is no longer true.
    The audio file formats which fail to stream are:  mp3 and wav
    The video file formats which fail to stream are:  mp4, avi and 3gp
    JPEG Images appear to work fine, but I haven't tried other formats.
    I purchased the WG-C10 to stream audio and video primarily to my phone and now that this no longer works, the WG-C10 is useless to me.
    Any ideas?

    Hi juicespeare1,
    Welcome to the Sony Community!
    Upon checking your inquiry, the best division to respond to your concern is our Sony Mobile department.
    You can reach them at this site: http://www.sonymobile.com/global-en/support/contact-us/contact-info/.
    If my post answers your question, please mark it as "Accept as Solution"

  • How to enable live audio streaming in FF running Windows 7

    I am unable to listen to live audio streams, please help !

    Which plugin is used for those streams?
    Your More system details list shows the WMP plugin and the Flash plugin as commonly used plugins to play streams.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How to stream video+audio cross platform on Windows and Mac OS? QTJ?

    JMF doesnt seem to support video crossplatform so i searched around and found Quicktime java. But from an article I read that apparently for crossplatform only Macs can send streams to PCs and PCs can only listen as client but cant send. Is this true? Is there a way around it that PC and Mac can send to eacother ? any sample codes? thanks.
    Here is link to article:
    http://www.onjava.com/pub/a/onjava/2005/01/12/strmng_qtj.html?page=1

    anyone know?

  • How to stream multiple audio files over a IP network in one session

    Hi everybody,
    i am going to build an internet radio application as my next project. I thought of taking JMF and the RTP streaming for this purpose. But the problem i faced during the development was it plays only one audio stream in a session. The thing is i want to send more than one audio stream in a given RTP session and using a single port. What my radio does is simply play mp3 music all day long. How can i do this and what other tools that i should take. please reply ASAP. thank u in advance,
    Thusira..

    You'll need to implement what I call a "jukebox" datasource... IE, the DataSource changes what file it's outputting, but the Processor and RTP DataSink associated with it are unaware of the change... so they keep right on transmitting like nothing happened, but the actual file being outputted has changed...
    http://web.archive.org/web/20080316203600/java.sun.com/products/java-media/jmf/2.1.1/solutions/Concat.html
    The concat example calls it a "superglue" datasource and uses it to concat outputs to a file... exact same concept, except you'll want to use a queue you can append to dynamically rather than an array created at compile time... and you'll want to output to RTP instead of to a file. You'll probably also want your DataSource to stay alive waiting for the next thing to be enqueued rather than shutting down when it reaches the end of the list.

  • Streaming live audio in a flash movie

    Hi, I'm working on a website for a local radio station, and I
    want to be able to stream a live audio feed of the radio station to
    a flash movie. Right now all I really know is that the URL to get
    this live feed is
    http://kpacradio.pacific.edu:8000
    - if you put that into Windows Media Player it will start the radio
    broadcast. Is it possible to play this through flash so that the
    user can just stream it from a website rather than having to
    introduce windows media player into it? Thanks a lot.
    David

    No. The Flashplayer can't connect to a windows media
    serverYou'd need to capture the stream and republish to FMS, or
    broadcast directly to FMS instead of WMS.

  • How to encode live audio to a-law?

    Hi all,
    I would like to know how to configure the processor to encode live audio to a-law datasource. I got something like this when I tried to start processor:
    Failed to build a graph for the given custom options.
    Failed to realize: com.sun.media.ProcessEngine@765a16
    Cannot build a flow graph with the customized options:
    Unable to transcode format: LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian
    , Signed
    to: alaw, 8000.0 Hz, 8-bit, Mono
    outputting to: RAW
    Error: Unable to realize com.sun.media.ProcessEngine@765a16
    Thanks.

    I think the format has to be one of those included in the getSupportedFormats().
    For example if you have a single track processor,
    Format[] formats = processor.getTrackControls()[0].getSupportedFormats()
    This should be callled on a confured processor. it returns an array of supported encoding/transcoding or output format for this configured processor. setting any of these should be successfull.
    Once format is set, the processor can be realized and started
    In your case I guess you have to find the format in the array that best matchs your a-law format then use this format from the array to set to the processor. (dont worry, their will be a few a-law formats)
    I think that in your case, transcoding 16-bit to 8-bit was the problem.
    Also, capturing at lower than 44100.0hz when transcoding to alaw 8000 could be considered, I mean capturing at 8000.0hz could work too

  • Streaming live audio to a Helix server

    Can I use JMF to stream audio to a Helix server? If, not which streaming servers are the best to use with JMF?
    The audio is being captured on a mobile phone and sent to the web server via HTTP POSTs (to a Servlet). I want the servlet to break it up into packets and stream it live to a streaming server, where people can listen to it on the web.
    Thanks.

    Removed; didn't notice the "live audio" when I made my suggestions.
    Message was edited by: Dave Sawyer.

  • Can an iPod Touch Stream Live Audio via Wifi through airplay?

    I would like to stream the audio from a PA system running in one building to another building on the same site. The distance is too far for a wireless speaker system, as well as for a strictly Airport based network. What I am wondering is if it would be possible to use an Ipod Touch to input audio from the PA and use airplay to output the audio via an Airport Express in the other building?

    What I am wondering is if it would be possible to use an Ipod Touch to input audio from the PA and use airplay to output the audio via an Airport Express in the other building?
    Sorry, but no. The basic issue would be how to get the PA audio "into" the iPod Touch.

  • Streaming live audio via wifi to home audio system

    I would like to attach a device to my stereo that would act as a wifi audio receiver and play whatever audio my macbook is currently playing.
    Does such a thing exist?  Basically it should act like a wireless version of an audio cable that I would plug into my mac's audio out and into my stereo.
    I can't tell if the airport express will do this.
    I own a Roku and I know I can get it set up to play certain kinds of media files over the network, but I want the freedom to be able to play live streams over the internet from any number of sources.
    I would accept being able to live stream from itunes, but only if it's a true live stream and not just letting me select itunes files.  (I want it to know where I am in a long podcast, for example.)
    Thanks!

    Just for completeness, airfoil + airport express indeed does exactly what I wanted:
    - I purchased an airport express, a mini stereo->phono Y splitter cable, and the airfoil application from Rogue Amoeba.
    - I configured my airport to join my existing network and plugged its audio out jack into my stereo receiver using the Y splitter cable.  At this point I could play itunes to my stereo by selecting the airport as the "speaker" using the little menu in the lower right corner of the itunes window.  (itunes found the airport express automatically)
    - I launched Airfoil and told it to stream "system audio" (as opposed to the other choice of streaming from a single application), which required a brief install and reboot of some system level software, to my airport express, which it had located automatically.
    Now I can stream any audio from my mac to my stereo, not just itunes!  Rock!
    The only sadness?  If the Time Capsule supported an audio out jack I would not have needed to buy the Airport Express.
    In the long run maybe it would have been smarter to buy an Apple TV.

Maybe you are looking for