Skip navigation
Currently Being Moderated

Problem playing audio from server

Mar 25, 2011 6:48 AM

I am trying to play an m4a(aac) audio file in flash. When I play the play the track with file kept in the same directory, it works fine. When I play the file placed on my localhost, it plays fine. But when I play it on a remote server, I get this in response whiel playing the file: NetStream.Play.FileStructureInvalid

Any idea what might be wrong?

 
Replies
  • Currently Being Moderated
    Mar 27, 2011 9:15 AM   in reply to rjoshicool

    probably the file hasn't been downloaded completely.. wait for the file to be downloaded and then play the file.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2011 11:35 PM   in reply to rjoshicool

    yep, but as the mp4 container is different then the mp3 I assume that it could be the issue.. as it runs locally but

    not on the remote location.. have a try and let me know

     

    -


    Ursprüngliche Nachricht----

    Von: forums@adobe.com

    Datum:

    28.03.2011 08:25

    An: "Tiago Dias"<tiago.dias@bluewin.ch>

    Betreff: Re: Problem playing audio from server Problem playing audio from server

     

     

    Thanks for the reply, but shouldn't the audio play before it is fully downloaded? Using NetStream object should stream

    the audio, just like we have video streaming using the NetStream class...

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2011 3:56 AM   in reply to rjoshicool

    Could it be a mime type issue?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2011 5:43 AM   in reply to rjoshicool

    I don't think you can play sound files with NetStream - it is designed to stream video assets encoded certain way (see documentation). AAC applies to NetStream in the context of video.

     

    Try to use Sound class.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points