• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

New Here ,
Oct 30, 2014 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

194

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
community guidelines