Search code examples
flashactionscript-3mp3flash-media-serverbitrate

FMS:Flash action script 3.0: How to get the bitrate of a mp3 file being streamed from FMS


I need to get the bit rate of a mp3 file which is being streamed as a netstream object in flash action scripting. I am using Flash Media Server 3.2.

I need the bitrate to calculate the duration of the mp3 file using the formula: Duration = file size in bytes / bitrate


Solution

  • The problem is solved, the problem was with the flash player, i was using version 9, with version 10 the NetStreamInfo class does provide the bitrate for the mp3 file which was not available in version 9. Thanks a lot for all the help guys!!