dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Problem in playing .mp3 file

  1. #1
    Member
    Join Date
    Jun 2008
    Location
    Ludhiana,Punjab
    Posts
    90

    Problem in playing .mp3 file

    Hi All,

    I m beginner to Flash Mobile. I m creating mp3 player with Flash Lite 2.1. The problem I am facing that after all the operations when I m starting sound.start(), its displays error

    PHP Code:

    A Call to GetURL
    (BasRehan.mp3foundlimitations might apply.
    FLERRNetwork Memory Error!
    Connected to file://C:\Documents and Settings\msingh\Desktop\Flash Lite Practice\mp3_Player\bin\BasRehan.mp3.
    Error for file://C:\Documents and Settings\msingh\Desktop\Flash Lite Practice\mp3_Player\bin\BasRehan.mp3. 

    Please help......
    MannPohir
    <span style="font-family: Verdana">m...ail.com</span>

  2. #2
    Moderator
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    I've not seen this type of error before.

    Are you using GetUrl to load the mp3 or are you using the loadSound() method of the sound object?

    Also how large is your sound file and what profile are you testing in device central?
    aviarts.com - web development and flash development

  3. #3
    Member
    Join Date
    Jun 2008
    Location
    Ludhiana,Punjab
    Posts
    90
    Hi I am using loadSound() function and file is of 8 Mb.
    MannPohir
    <span style="font-family: Verdana">m...ail.com</span>

  4. #4
    Moderator
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    I suspect that 8mp file size is too large for the memory allocated to Flash Lite. Most phones on the market have around 2mb or less and when it comes to sound, memory management is not 1:1, so you have even less memory for sound files. You can use device central to see how much memory is allocated for a given device.

    Have you tried testing with a much smaller sound, such as one less than 500kb?
    aviarts.com - web development and flash development

  5. #5
    Member
    Join Date
    Jun 2008
    Location
    Ludhiana,Punjab
    Posts
    90
    HI,

    I have tried that. Now I am receiving Error

    PHP Code:

    FLERR
    Bad Sound Data Error
    I have picked the song from the example that is working proper. Example is on the following path:

    http://www.adobe.com/devnet/devices/...ample_fl2.html
    MannPohir
    <span style="font-family: Verdana">m...ail.com</span>

  6. #6
    Moderator
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    do you get this error when you run the swf example from adobe, or only in your application using the sound from adobe?

    also what phone profile are you testing in device central?
    aviarts.com - web development and flash development

  7. #7
    Senior Member
    Join Date
    Aug 2006
    Posts
    322
    if you r testing in Device Central CS3, then test it in 5310,5320,6210,6220 classic,6290,6310,E51,N95 etc.....etc...

    I have tested in a nokia E51 and it works.

    marlopax

  8. #8
    Member
    Join Date
    Mar 2009
    Location
    Pune
    Posts
    62
    MannPohir, for making a player did you brows the .mp3 files?
    If so how?
    FileReference class is not there in flash lite 2.1 so which class to use to brows through files?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center