Zack, my best guess is that the encoding of your mp3 isn't working in the Flash player, which is not a Laszlo issue per se. Flash behaves poorly with mp3s it doesn't like, which makes tracking down problems like this difficult.

A good idea would be to find out whether your mp3 plays in a standalone Flash app separate from Laszlo. (You can use the mtasc.org compiler to test this, using Flash's Sound class to load an play your mp3.) If your mp3 works in standalone Flash but not in Laszlo, write back and/or file a bug. If not, Google like crazy to find encoding issues with the Flash player.

Hope this helps,
  -Neil

On Jan 23, 2006, at 4:46 PM, Zack Hubert wrote:

I haven't heard from anyone on my last request for help with this. Is it official that OpenLaszlo doesn't support MP3's or short MP3's or through a
solo deployment?

-z

-----Original Message-----
From: Zack Hubert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 17, 2006 3:27 PM
To: Max Carlson
Cc: '[email protected]'
Subject: RE: [Laszlo-user] SOLO + MP3

Ok, let's try to tackle this from two approaches.

Can anyone build a laszlo app that can play a short mp3, or is this a known bug? My application absolutely has to be able to play short mp3's...I'd say
the average mp3 dynamically loaded will be around 15 seconds.

Can anyone tell me of an encoder that is *known* to work with the Flash player or have a sample mp3 that is *known* to work with the Flash player
(short or long)?

Thanks!

-z

-----Original Message-----
From: Max Carlson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 9:00 PM
To: Zack Hubert
Cc: [email protected]
Subject: Re: [Laszlo-user] SOLO + MP3

Hi Zack,

This should work, provided you have permissions to load the file from
the remote server.  In SOLO (proxied="false") mode this requires the
remote site (www.zhobert.com in your example) to publish a
crossdomain.xml file on the root of their server explicitly giving
permission to load the files.

I just tested, and zhubert.com doesn't appear to have this issue.

I also tested SOLO mode and it does indeed load mp3s, at least local
ones.  Can you try publishing a longer mp3 file, say at least a minute
long?  It's possible there's a bug loading short mp3s (which
http://www.zhubert.com/obible/mp3/test.mp3 looks like it is...)

Also, it's possible your mp3 encoder is producing files the Flash player is having problems playing. Let's try a longer file to be sure. Thanks!

Regards,
Max Carlson
OpenLaszlo.org



Note that your example is

Zack Hubert wrote:
Howdy all,

I have an application that would like to be able to reference a variably named mp3 file and play it (kinda like SoundBlox). I deploy my application
SOLO and would prefer to keep it that way if at all possible.

I've tried a bunch of different ways to do this, but nothing works. You click the play button and it's silent, no errors, just nothing. The mp3's are the right format, if I hardcode them in a resource tag they'll work,
but
I want to be able to setSource and do it dynamically at runtime.

Is this supported?

(for instance)

<canvas proxied="true">
<view
oninit="this.setSource('http://www.zhubert.com/obible/mp3/ test.mp3')"/>
</canvas>

Thanks!

-z

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to