Skip to main content
Participating Frequently
May 16, 2011
Answered

Weird playback when using Stream.play("mp3:file")

  • May 16, 2011
  • 1 reply
  • 682 views

Hello!

I'm trying to setup a server-side playlist for playing back mp3 files, though I stumble into a weird FMS behaviour.

I'm using latest FMS 4.0.2

Here is how I try to publish the stream (Server-side ActionScript):

var s = Stream.get("boo");

if (s) {s.play("mp3:rhcp", 0);}

  On the client side, I try to play it using NetStream.play("boo"). Though, the sound quality I get is really weird. The sound goes slower and faster and stops for a split of a second. It may play properly for a couple of seconds, but that's all. Sounds like a decoder problem to me, or a bitrate conversion problem. 

When I play the stream with NetStream.play("mp3:rhcp") the playback goes smoothly.

I've tried several mp3 files with different bitrates, but they all have the same problem.

It looks like a bug to me, so I would expect someone from Adobe to comment on this one.

    This topic has been closed for replies.
    Correct answer Nikhil_Kalyan

    Hi,

    Thanks for trying the FMS 4.0.2

    It is little strange to see the problem, but i would like to know your client side settings. Which flash player are you using (though i doubt this is an issue as your original file playback is ok), and whats the buffer length you used ? There are known issues with buffer length set to 0. Can you try and change the buffer length to few other values and see if that helped in getting the quality better ?

    Thank you  !

    1 reply

    Nikhil_Kalyan
    Nikhil_KalyanCorrect answer
    Participating Frequently
    May 17, 2011

    Hi,

    Thanks for trying the FMS 4.0.2

    It is little strange to see the problem, but i would like to know your client side settings. Which flash player are you using (though i doubt this is an issue as your original file playback is ok), and whats the buffer length you used ? There are known issues with buffer length set to 0. Can you try and change the buffer length to few other values and see if that helped in getting the quality better ?

    Thank you  !

    hrundik1Author
    Participating Frequently
    May 17, 2011

    Thanks a lot!

    It was indeed a buffer problem. NetStream's default is 0.1, and for some reason it's not enough for a live stream created with server-side Stream.

    Nikhil_Kalyan
    Participating Frequently
    May 17, 2011

    Glad to know that solved your problem.

    Please do let us know if changing the buffer value to some other values just to make it work is 'ok' for your use case(s). We would like to take this up and see why it shouldn't work for all buffer values, be it server side or client side net stream.