Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:50:24+00:00 2026-05-28T19:50:24+00:00

I have made a player that plays mp3 and does the job very well

  • 0

I have made a player that plays mp3 and does the job very well (not an easy task in flash AS3 to build a secure and stable player). It also can play radio mp3 streams of several radio stations. The ‘problem’ with mp3 streams is that i do not know how to detect that it is a mp3 stream in flash (no documentation found on the internet and the adobe site). Also I do not know what best way is to buffer these streams.

Anyway, i have made some complicated detection method to decide that it is a stream by checking the getBytesLoaded() and the sound.length changing for a (long) period of time. This is needed to ‘tell’ the player not to wait while the stream/file is completed or to skip the file when it is corrupt. The problem with this detection method is a slow connection or a fast connection (both has side effects).

For example when it is a slow connection, the detection method fails because it thinks that the file is a stream and when it is a fast connection (or Chrome – that preloads the stream faster than Firefox), it thinks the file is corrupt and skips playing and starts the next file.

This all is not easy to explain but the main question is: Can I see/detect at the beginning of the stream (after opening it) that it is a mp3 stream so that I can skip my silly ‘guess-is-it-a-file-or-stream-test’?

Sorry for my bad english today but I have to fix this. Is there anybody that knows a stable solution to this? I have tried a header look-up already but cannot rely on that (too many difference server headers found).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:50:25+00:00Added an answer on May 28, 2026 at 7:50 pm

    Sorry, there’s no way to do that because there is no difference between an MP3 file and MP3 stream – they are exactly the same data. However, if you happened to have a file descriptor, or another program to issue a specific response to your player to acknowledge that the size of the data to be sent is known, then you could treat that response as if it was a file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a code that read data from flash Nand (without filesystem). fd
I have a flash player on a page which plays videos. I also have
Currently I have made a flash/as3 Snake game which I want to somehow make
I have made a method player method (inherits from NSObject) that I initialize in
I have a video player that I made with Silverlight 2, and to pass
Hi i have made a simple program that plays a video file, i used
I have made like an Asteroid copy, that works pretty well! I made it
I have made a jQuery toggle for a menu that I had in mind.
I made an WPF app that plays sounds using the MediaPlayer class. This works
I have made an actionscript that loads an external text file, and scrolls its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.