Highlighted

flash.media.Sound won't play from position: 0 with specific data url

New Here ,
Oct 30, 2014

Copy link to clipboard

Copied

I couldn't access the Flash Bug reporting website so I will post this here.

I am using flash.media.Sound class to start mp3 playback and this particular file does not work if the startPosition = 0. If I set startPosition to 1, it works.

var url:String = "https://www.dropbox.com/s/osret7iqo0kvcp6/troubleFile.mp3?dl=1";

private var mp3Context:SoundLoaderContext = new SoundLoaderContext(3000, false);

private var mp3Sound:Sound = new Sound();

private var mp3Request:URLRequest = new URLRequest(url);

mp3Sound.load(mp3Request, mp3Context);


Doesn't work:

mp3Sound.play(0);

Works:

mp3Sound.play(1);

Can you please debug this file on your flash.media.Sound?

TOPICS
Performance issues

Views

157

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

flash.media.Sound won't play from position: 0 with specific data url

New Here ,
Oct 30, 2014

Copy link to clipboard

Copied

I couldn't access the Flash Bug reporting website so I will post this here.

I am using flash.media.Sound class to start mp3 playback and this particular file does not work if the startPosition = 0. If I set startPosition to 1, it works.

var url:String = "https://www.dropbox.com/s/osret7iqo0kvcp6/troubleFile.mp3?dl=1";

private var mp3Context:SoundLoaderContext = new SoundLoaderContext(3000, false);

private var mp3Sound:Sound = new Sound();

private var mp3Request:URLRequest = new URLRequest(url);

mp3Sound.load(mp3Request, mp3Context);


Doesn't work:

mp3Sound.play(0);

Works:

mp3Sound.play(1);

Can you please debug this file on your flash.media.Sound?

TOPICS
Performance issues

Views

158

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 30, 2014 0

Have something to add?

Join the conversation