Streaming MP3 with RTP

Hello,
I am trying to implement a RTP server and a RTP client, for that purpose I am using JMF, it seems to work good until I tried to transmit MP3 files. When I trasmit MP3, I get the next error message:
Unable to handle format: mpeglayer3, Unknown Sample Rate
Failed to realize: com.sun.media.PlaybackEngine@1700391
Error: Unable to realize com.sun.media.PlaybackEngine@1700391
Error in ControllerErrorEvent: javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@fa39d7,message=Failed to realize: input media not supported: mpeglayer3 audio]
I have installed the mp3 pluging and I have used the AVTrasmint2 and AVReceive2 class with some modifications to try to solve the problem, but I can not solve it.
I tried to use JMFStudio in both sides (server and client side) and I got the same error.
-->failed to handle a data format change!
I would like to add that I have used two differents computers (one for the server and one for the client) to make all the test.
Could you give me some advise, help or solution for that problem? If someone has a solution(code) to transmit streaming MP3 using RTP and kown that it is running ok, could you show me?
I am doubting if MP3/RTP is supported in JMF, If someone knows another alternative to implement a streaming MP3 audio server and client, could you say me what solution is it?
Thank you very much, I expect that someone could help me.
PD: Sorry for my english, I think that it is not so good.

Hi I had the same problem but i manage to solve it.
First of all you have to install the mp3 plug-in and as u mentioned that u already did that.Make sure the mp3plugin.jar file is inside the lib/ext of the jre you are using for your project and one imp thing is first register the plug-in by issuing the command
java com.sun.media.codec.audio.mp3.JavaDecoder
It will modify the jmf.properties binary file.Once your done with this put this updated jmf.properties file in your project folder.After this your code should run perfectally.In case of any problem.Post it.
cheers

Similar Messages

  • Stream MP3 with MP3 uppercase suffix

    Hi,
    I would like to check if there is a way to configure Flash Media Server(FMS4) to support media content suffixes used to stream MP3 content, e.g MP3 suffix in uppercase and not just the defualt mp3(lowercase).
    Thanks.

    The files in my storage are mp3 and MP3 extension, i want to play them both
    options. The play path is not indicating the suffix like FMS requires. The
    indication to stream mp3 is not based on the suffix, but on the type of
    streaming mp3:
    rtmpe://<ip:port>/mdfApp/mp3:<virtual path no suffix>
    So FMS added the file extension by itself to the path, which is mp3, so MP3
    extension files are not found

  • How to stream MP3s with embedded images

    When I stream an MP3 file with an embedded image, the first few seconds of the files are clipped.
    I will need to find another server, or a viable workaround.
    What is the best way to work around this?

    I have the same issue described by loris.guignard.
    The problem is not specific to the embedded cover. If I store very large text tags in mp3 (i.e. larger than about 130 kB), the same problems occurs. In addition, if the tags exceed the 130 kB limit, the duration of the song which can be played decreases.
    For my tests I use a 3:26 mp3 (8.25 mB) and the JW Player. The duration of the song piece which can be played varies as follows, depending on the size of the picture stored in the tags :
    - Picture size between 130 kB and approx. 600 kB => the song is played properly until 3:23. The last 3 seconds played (3:20 -> 3:23) are repeated from 3:23 until the end at 3:26. Note that the total duration of the song is correct (3:26).
    - Picture size : 750 kB => the song is played properly until 3:23, then it stops (the total time displayed is 3:26)
    - Picture size : 1.244 MB => same as above, but stops at 3:10 / 3:26
    - Picture size : 1.493 MB => same as above, but stops at 3:03 / 3:26
    - Picture size : 2.348 MB => same as above, but stops at 2:43 / 3:26
    - Picture size : 6.297 MB => same as above, but stops at 0:58 / 3:26
    The tags are ID3v2.3 compliant (by the way ID3v2.3 has no size limitation). The measures are the same when we use ID3v2.4 standard. It seems that the problem lies only in the size tags, not in the ID3 version or the tag content.
    The measurements are the same whatever the buffer length I choose for the client-side player.
    Let me make the following assumption: the end of the played song is evaluated according to offset from the beginning of the mp3 file (rather than from the start of the mp3 music data, i.e. from the end of the tags), modulo the buffer size used for reading the file (which must be 128 kB).
    For example, if we combine a tag picture of 4 MB and a mp3 of 8 MB, we have a 12 MB mp3. Since the tags are stored at the file beginning, when the server-side player reaches the middle of the song (at 4+4 = 8 MB), the reader believes that the reading is complete. But it remains 4 MB to read before the real end.
    Maybe the last seconds can loop or be truncated because of the wrong time adjustment between song duration evaluation and data buffer length. In my example, the mp3 bitrate was 40 kB/s. So if the file buffer size is 128 kB, it read... 3.20 seconds.
    Of course it is only a hypothesis, but I'm really intrigued by this problem.
    Can you please tell we how can we fix this ? Are there any configuration that we can change in the FMS side or maybe a patch ?

  • Problem streaming MP3 with flash and IE7

    Ok, I have a big problem here. Only occurs with Internet
    Explorer 7 and possibly 6 too. Happens only on some systems, one of
    mine do that, I have 3 systems.
    I have a website that opens a window that streams a webradio
    from another website. The websites are not on the same server. When
    I first open IE, and click on the radio link that contains de flash
    file that loads the MP3 file to stream, it works. I close down the
    window, re-open the link, and it keeps loading (the little circle
    keeps rotating for ages). I have latest version (9.0.47.0) of flash
    player installed, like my other systems. If I close all instances
    of explorer and open the radio link again, it works ! But at the
    moment I close down the new window (there's another explorer opened
    at that moment), and open it again, it won't work.
    Seems to be either explorer OR flash to be faulty, I tried 4
    different flash player, they all do the same thing, so it's not the
    flash player (SWF file) that loads the MP3. Is there a solution? Is
    it a known problem??

    http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=Flash_MX_2004&file=00000364.html

  • Streaming MP3 with flash

    I want to stream a single MP3 file (could convert in to WMV
    if needed) with a flash player which contains a pause/stop/pay
    button with flash/dreamweaver.
    Anyone know how I could do that?

    http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=Flash_MX_2004&file=00000364.html

  • Help with RTP: Format of Stream not supported in RTP Session Manager

    Hello everyone,
    I am quite new to JMF and RTP. So far I've succeeded in capturing audio from the microphone and playing it back. However, I failed when I tried to send the stream over using RTP.
    Here's my program, all it does is: get a DataSource from the CaptureDevice, create a Processor with that DataSource, convert the tracks in the Processor to one of the RTP formats, and create an RTP SendStream using the Processor's output DataSource.
    I can hear sound by creating a Player for the DataSource; however I get errors when I try to create RTP SendStream for the same output DataSource.
    Here's my code:
                CaptureDeviceInfo cdinfo;
                Format fmt = new AudioFormat(AudioFormat.LINEAR, 8000, 8, 1);
                Vector deviceList = CaptureDeviceManager.getDeviceList(fmt);
                if (deviceList.size() > 0) {
                    System.out.println("Device Found.");
                    cdinfo = (CaptureDeviceInfo) deviceList.firstElement();
                } else {
                    System.out.println("No device!");
                    return;
                DataSource ds = Manager.createDataSource(cdinfo.getLocator());
                Processor processor = Manager.createProcessor(ds);
                StateHelper sh = new StateHelper(processor);
                if (!sh.configure(10000)) {
                    System.out.println("Could not configure...");
                    System.exit(-1);
                // Get the track control objects
                TrackControl track[] = processor.getTrackControls();
                System.out.println("Number of tracks:" + track.length);
                boolean encodingPossible = false;
                // Go through the tracks and try to program one of them to outout some "RTP format"
                for (int i = 0; i < track.length; i++) {
                    try {
                        track.setFormat(new AudioFormat(AudioFormat.DVI_RTP));
    encodingPossible = true;
    } catch (Exception e) {
    // cannot convert
    track[i].setEnabled(false);
    if (!encodingPossible) {
    System.out.println("Could not encode..");
    sh.close();
    return;
    processor.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
    if (!sh.realize(10000)) {
    System.out.println("Could not realize...");
    System.exit(-1);
    System.out.println("Realized...");
    DataSource outSource = processor.getDataOutput();
    System.out.println(outSource.getContentType());
    processor.start();
    player = Manager.createRealizedPlayer(outSource);
    player.start();
    SessionAddress addr = new SessionAddress(InetAddress.getByName("224.144.251.104"), 8194, 4);
    manager.initialize(addr);
    //manager.addFormat(new AudioFormat(AudioFormat.GSM_RTP), 1);
    System.out.println("RTP Session started...");
    stream = manager.createSendStream(processor.getDataOutput(), 0);
    I get an error on the last line, the error is: javax.media.format.UnsupportedFormatException: Format of Stream not supported in RTP Session Manager And again, if I try to encode the tracks into *AudioFormat.GSM_RTP* instead of *DVI_RTP*, I get a different error on the same line:Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionWell I don't understand what's happening, is there something I need to do before I can use RTP?
    Hope you guys help :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    seems that you are encoding a track to RTP format but outputting a RAW format.
    Your encoding section is also a little bit lazy as you don't check supported formats...
    Try this between configured and realized state:
              // Get the tracks from the processor
              TrackControl [] tracks = processor.getTrackControls();
              // Do we have at least one track?
              if (tracks == null || tracks.length < 1)
                  return "Couldn't find tracks in processor";
              // Set the output content descriptor to RAW_RTP
              // This will limit the supported formats reported from
              // Track.getSupportedFormats to only valid RTP formats.
              ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
              processor.setContentDescriptor(cd);
              Format supported[];
              Format chosen;
              boolean atLeastOneTrack = false;
              // Program the tracks.
              for (int i = 0; i < tracks.length; i++) {
                  Format format = tracks.getFormat();
              log.info("Input format for RTP conversion: " + format);
              if (tracks[i].isEnabled()) {
                   supported = tracks[i].getSupportedFormats();
                   // We've set the output content to the RAW_RTP.
                   // So all the supported formats should work with RTP.
                   if (supported.length > 0) {
                        if (supported[i] instanceof VideoFormat) {
                             tracks[i].setEnabled(false);
                             continue;
                   else if (supported[i] instanceof AudioFormat) {
                        // set audio format for RTP transmission
                        chosen = new AudioFormat(AudioFormat.DVI_RTP);
                        tracks[i].setFormat(chosen);
                        tracks[i].setEnabled(true);
                        atLeastOneTrack = true;
                   else
                        tracks[i].setEnabled(false);
                   else
                   tracks[i].setEnabled(false);
              else
                   tracks[i].setEnabled(false);
              if (!atLeastOneTrack)
              return "Couldn't set any of the tracks to a valid RTP format";
    The important thing should be theContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);part.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem streaming music with New Apple TV- Anyone else?

    I am new to Apple TV.  I have been using a Sony BDP580 (DLNA) to stream my FLAC digital music via a wired LAN.  It works flawlessly.  I just got the new Apple TV for streaming. I set it up and home shared with my Itunes library containing AIFF digital music via same wired LAN.  It sees everything but each time I start a song, it plays for about 35 seconds and then starts studdering and hestitates, finally stopping altogether and displays an error message saying, "An error occurred loading this content.  Try again later."  This happens everytime, with any song I select.
    I assumed this was a buffering problem, so I tried same songs again but this time paused them immediately after starting the song.  If I paused for 15-20 seconds, I got about 2.5-3 minutes of music before it did it's studdering thing and stopped altogether.  If I paused for 90 seconds or so, I could get thru an entire 10 minute song.  Seems to confirm a buffering problem.
    I have not tried streaming MP3's yet but that is not my intention.
    I realize that the software is new but this is basically unuseable as it currently functions. I am considering trying to return the the Apple TV.  Are there similiar  kinds of problems when new Apple TV software is released?  If so, is Apple quick with fixes and updates? 
    By the way, I also got a new IPAD and love it. 

    I have an older PC with Windows XP Professional on it. I updated to the latest iTunes and I am able to access the photos, etc. on it. However, my Windows 7 PC still does work (since last Apple TV update). Apple TV does not recognize that Home Sharing is turned here. The latter PC has all my current photos on it which I would like share with others on my Apple TV. A fix would be appreciated.

  • Streamed MP3 music files losing first few seconds

    My Apple TV seems to drop the first few seconds of MP3 music files when they are streamed from iTunes, but not when they are synced to the Apple TV.
    The number of seconds that are dropped varies from none at all for some songs to 20, or much more than that ... but seemingly never more than a minute.
    When I select one certain song in a particular playlist -- "Song for the Mira" by the Garrison Bros. -- the time shown is 5:19. When I press play on the Apple TV remote the time changes to 5:00, very briefly ... just before the Apple TV starts to play the song with its first 19 seconds missing, as if it were really a 5:00 song.
    From that time on (unless I reload the iTunes library) every time I select the same song from any playlist, or from under Songs, or Albums, or whatever, the time is always shown right away as 5:00. So Apple TV is "remembering" the time of the song.
    If I cause Apple TV to reload that iTunes library, the time goes back to 5:19 until I actually play the song again, at which time it becomes 5:00 again.
    The amount of time that is sliced off from the beginning of a song is always consistent for that song. So if the amount is 12 seconds one time for a particular song, it is always 12 seconds.
    I have not altered the start or end points of affected songs in iTunes.
    As far as I can tell, this never happens with Protected AACs.
    It never happens with synced copies of the MP3s, only with streamed playback.
    I have the latest versions of iTunes (7.3.2) and of the Apple TV software (1.1).
    Restoring the Apple TV to factory settings, re-downloading the software, etc., have no effect on the problem. Nor does restarting my iMac, which is running OS X 10.4.10. Nor does restarting the various base stations on my wireless network, all of which have the latest firmware.
    Anyone else have a problem with the beginnings of streamed MP3s being truncated? Anyone know what to do about it? Thanks.

    Since my last post to this thread I have discovered:
    (1) I was wrong in thinking there is no pattern to the number of seconds lopped off at the beginning of various MP3s when streamed to my Apple TV. Actually, I have found that the same number of seconds is dropped from every song in a particular album or compilation!
    So my "Sounds of Nova Scotia, Vol. 1" compilation -- which contains the "Song for the Mira" that is reduced from 5:19 to 5:00 at the start of Apple TV's streamed playback -- has 19 seconds removed at the start of every track when its tracks are streamed to Apple TV. (It does not appear to be significant that this particular track seems to be rounded to the nearest minute. Cutting the first 19 seconds off the other tracks in the compilation does not bring them to an even minute.)
    My Beatles' "Abbey Road" album has not 19 but 30 seconds dropped at the start of every streamed track!
    (2) I was also wrong in reporting that the time change from, say, 5:19 to 5:00 is "remembered" by Apple TV the next time I select the affected track from a list on the TV screen. Actually, the next time I select the track, it shows up as 5:19 again. But if I press Play, that changes to 5:00 in the split second just before the track actually starts to play ... and then the progress bar that appears at that point, when the actual song is being played, reflects a 5:00 total time, not 5:19.
    To recap what I said before, this happens only when I stream (even from the syncing iTunes), not when I play a synced copy. AACs are unaffected. Not all MP3s seem to be affected, though all in an affected album or compilation are affected the same way, by having an identical number of seconds lopped off. I have the latest software/firmware in all my devices. Restarts/resets do not help. The problem persists in copies of copies of the affected MP3 tracks streamed from iTunes _on my other Mac_, a MacBook Pro. The problem does not occur when I play the tracks right in iTunes on either machine. I am not using manually set start and stop times on the affected tracks in iTunes. I do not have *Part of a Gapless Album* or *Remember Playback Position* set in Info in iTunes Preferences, though I have tried setting *Part of a Gapless Album*, with no effect on the problem.
    Anyone have any more ideas as to what might be causing this? Thanks.

  • Problems streaming mp3's

    Hi,
    I'm having some trouble with streaming mp3's and clicking
    links at the same time. It seems that while the mp3 file is
    downloading it's impossible to click on links, it freezes until the
    song is fully downloaded. To view the mp3 player i've built with a
    friend please feel free to visit
    http://www.musicplayer.fm/ -
    if you sign in with username: "test" password: "password" and feel
    free to play any song, and you'll see what i mean. I'm stuck
    getting around this problem.
    I've tried embedding the player using the SWFobject method in
    javascript, cross domain streaming... and nothing seems to work.
    The player is streaming the mp3 using loadSound(location, true);
    and the location is fed using an xml file.
    Thanks for any advice in advance.
    Matt

    No surprise at all - these are two different technologies for two entirely different purposes.
    A podcast is meant for files to be downloaded to a user's computer so that they can be listened to at any time or transfered to an iPod. A streamed file is more like a radio broadcast - it can only be listened to while the streaming server is "broadcasting" the file to the client computer.
    If you want to take advantage of both options you'll need to upload your file to two different locations.

  • Capture streaming MP3 to file

    Is there a way to open an MP3 stream and write it to a file? A java based way to record internet radio for later listens?

    1) Can someone point me to a URL where if I connect it will send me streaming MP3 data?No. I mean, I could make a URL that sends you MP3 data, but it'll only be what I want to send, not necessarily what you want.
    The file you get is a meta file, which tells where the content is. If you want to connect to that, you need to know what the protocol is. If it's not publicly available, then I'm sure a reasonably motivated person could sniff it out. And that's presuming that the audio is actually MP3 data to begin with.
    2) Is there a better way of doing this?That depends. Better for who? You the application developer? The end user? The copyright owner?
    Back to your original questions, which were actually reasonable...
    Is there a way to open an MP3 stream and write it to a file? If you have an MP3 stream, it's either a TCP or UDP stream, in which case, yes, you can have Java connect and record it, presuming you can talk to the server in the appropriate protocol that the server expects to be talked to in.
    A java based way to record internet radio for later listens?This is entirely up to the radio protocol.
    You'd probably be better off intercepting the raw audio from the sound card, as it's more universal.

  • Streaming mp3 through Oracle/RealServer plugin

    Did anybody try to stream mp3 content from Oracle database through Oracle interMadia plugin for RealServer8? The RealServer8 itself plays mp3 files with no problem. I am having no problem to play native RealServer content (loaded from *.rm files) trough the Oracle plugin (mime_type='audio/x-pn-realaudio'). I am using mime_type='application/x-pn-mpg' as recommended when loading mp3 in ordaudio object. But the RealSetver says that 'This server is not configured to play the data type you requested'. What is wrong? My environment: Oracle plugin 8.1.6/8.1.7 for RealServer for Solaris.
    Thanks for your input,
    Eugene.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Eugene FIRYAGO ([email protected]):
    Did anybody try to stream mp3 content from Oracle database through Oracle interMadia plugin for RealServer8? The RealServer8 itself plays mp3 files with no problem. I am having no problem to play native RealServer content (loaded from *.rm files) trough the Oracle plugin (mime_type='audio/x-pn-realaudio'). I am using mime_type='application/x-pn-mpg' as recommended when loading mp3 in ordaudio object. But the RealSetver says that 'This server is not configured to play the data type you requested'. What is wrong? My environment: Oracle plugin 8.1.6/8.1.7 for RealServer for Solaris.
    Thanks for your input,
    Eugene.<HR></BLOCKQUOTE>
    null

  • Save streamed MP3 file?

    Our app includes a music player which streams MP3s from a server. We would like to be able to stream the MP3, and save it to a cache on disk once it has fully downloaded.
    I am using the load() method of the Sound class to stream the MP3 so that playback can begin before the file is fully downloaded. I can listen for the Event.COMPLETE event to indicate that the MP3 has finished downloading, but the Sound class offers no way to access the original file and save it to disk (the extract() method returns uncompressed sound data which is much too large to write to the disk).
    Is there any method to download an MP3 file that will allow us to stream the MP3 file as it is downloading, and save it to disk when the download is complete, without downloading it twice?

    Unless you can find an MP3 encoding library that could take the extract() data and convert it back with minimal effort, I think your only option is to save the mp3 using the File and FileStream classes. One thing you could try is to use a File object to download the file, and while it is downloading, you have the sound object play the data contents of the File object downloading the mp3. I just tried a quick test locally and it worked on my desktop. You will have to try it from an actual server to know how well it can work in that environment, but it is at least worth a shot.
    import flash.filesystem.File;
    import flash.filesystem.FileMode;
    import flash.filesystem.FileStream;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.media.Sound;
    import flash.net.URLRequest;
    var file:File = File.applicationDirectory.resolvePath("gravity.mp3");
    file.addEventListener(ProgressEvent.PROGRESS, onProgressEvent);
    file.addEventListener(Event.COMPLETE, onFileLoadComplete);
    file.load();
    var sound:Sound;
    function onProgressEvent(e:ProgressEvent):void {
      if (sound == null) {
      file.removeEventListener(ProgressEvent.PROGRESS, onProgressEvent);
      sound = new Sound(new URLRequest(file.url))
      sound.play();
    function onFileLoadComplete(e:Event):void {
      file.removeEventListener(Event.COMPLETE, onFileLoadComplete);
      var saveFile:File = File.desktopDirectory.resolvePath("gravity2.mp3");
      var fs:FileStream = new FileStream();
      fs.open(saveFile, FileMode.WRITE);
      fs.writeBytes(file.data, 0, file.data.length);
      fs.close();
    What this code is doing is creating a File object with, in this case, a path to an MP3 in the same folder as the test FLA I created. This would be a path to your server stored MP3. Then you setup the event listeners for progress and complete. I used progress to know that the file had actually started to be downloaded to then trigger the initialization of my Sound object. Depending on someones network connection and the size of the MP3, it could be a good idea to use progress to know that the file has gotten X percentage done before trying to play the file.
    For testing purposes in my progress event, I just checked to see if the Sound object had been initialized yet, and if it hadn't then set sound equal to a new Sound object with the File.url property for the URLRequest() and then told it to play.
    Once the File object dispatched the complete event to indicate that the download finished, I created a new File object for the purpose of saving it to the filesystem using the FileStream class. Using FileStream to save the file allows for no user interaction to save the MP3.
    There may be better ways to handle my method, but I can't think of any at the moment. As far as I know, the second File object, which I named "saveFile", is required in order to actually save the downloaded MP3 object because Im not too familiar with File manipulation. The only downside I can think of is that you have a copy of the MP3 is memory and would need to null out the File object that loaded the MP3 to free up memory.

  • Stream mp3 without FMS?

    is it possible to stream mp3 without using FMS? how would I
    do it? All the examples I could find and the examples in the book I
    bought show streaming done via rtmp and a flash server. My website
    is located on a shared webserver, so I'm not sure I can install
    FMS.
    I'm trying to write an embedded mp3 player that can play a
    song. when a link is clicked the link should pass the song name so
    the player will play the correct song. for example: when
    http://mysite.com/player.php?value=songname.mp3
    is clicked, the player will play songname.mp3
    thanks.

    I'm surprised that no one has answered this. Is this question
    too simple or something?
    Anyway, I've been trying to load an mp3 at runtime but I'm
    getting some errors:
    Error: Could not resolve <mx:Sound> to a component
    implementation.
    <mx:Sound id="bgm" source="01.mp3"/>
    how can i implement loading the sound file?
    here's what i've currently put together... I know there's a
    lot of mistakes, but that's why it's not compiling right? :-) hope
    someone can give me a hand with this.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Style>
    Button {
    color: blue;
    .play {
    color: black;
    upSkin: Embed("playup.png");
    overSkin: Embed("playover.png");
    downSkin: Embed("playdown.png");
    .stop {
    color: red;
    upSkin: Embed("stopup.png");
    overSkin: Embed("stopover.png");
    downSkin: Embed("stopdown.png");
    </mx:Style>
    <mx:Panel id="panel" width="450" height="64">
    <mx:Button styleName="play" label="Play"
    click="bgm.play()"/>
    <mx:Button styleName="pause" label="Pause"
    click="bgm.pause()"/>
    <mx:Button styleName="stop" label="Stop"
    click="bgm.stop()"/>
    </mx:Panel>
    </mx:Application>

  • Setting dimension of RTP packet with 'rtp' jmf

    How is it possibile to set the dimension of RTP packet with JMF in the transmitting audio stream with RTP????

    thesti wrote:
    how JMF deal with RTP packet loss? since my application doesn't handle anything due to RTP packet loss, i believe that JMF has a mechanism to deal with it.It "deals" with it by having a blank spot in the rendering where that packet would have gone...

  • Stream mp3s in safari

    I was able to stream mp3s from safari and navigate away from the safari app with the mp3 still playing in the background. Now for some reason I am unable to do that. It stops playing when I hit the home button or if my phone locks. How do I fix this? Again, it was working earlier today.

    Hi Dan
    http://www.rubicode.com/Software/RCDefaultApp/ claims to allow a user to modify the launchservices database in a nice easy way.
    Using defaults read com.apple.launchservices ( take great care using Terminal !! ) may give some clues too.

Maybe you are looking for

  • Creating partner application in Oracle Portal

    $ORACLE_HOME/sso/bin/ssoreg.sh -oracle_home_path <oracle_home_path> -config_sdk_papp TRUE -site_name SSO_APEX -home_url http://hal-00-dbs-08.hal.net:7777/pls/apex -success_url http://hal-00-dbs-08.hal.net:7777/pls/apex/wwv_flow_custom_auth_sso.pro ce

  • Problem with formatting text in textobjects with right aligned tabulators

    Post Author: Jens Kluesener CA Forum: General HiI want to print out some values in a line. So I put a Textobject in the Report with some right aligned tabulators (left aligned tabulators working fine). Then I insert a formula. In this formula i do th

  • E72 problem with WLAN

    Dear all, is one week that I'm playing with my new E72 but I'm little bit puzzled about the usage of wlan connection. At home I have an unprotected wlan then I have configured with the wlan wizard the internet access point of my wlan and I have inclu

  • Consolidated HR report from 2 company code

    Hi , How can we extract consolidated HR  report from 2 company code Rex

  • Java thread WAIT(400).. using NetBeans 6.0

    Hi everyone, can someone please help me! Im trying to make something look like a 'loading' bar but I cant get this to wait(200)... like for ex: I want to ProgressBar1, to load up like 10% and then wait 4 seconds, and load up to 40% but Im not sure ho