Hey Raju,

Thanks for the intel, didn't try the SoundLoaderContext trick, we'll give it a 
shot when we have some time.

For streaming content, I think we'll still stick with AAC/FLV files and 
NetConnection/mediastream for the reason that it gives us an easy way to allow 
"progressive scan" (i.e. jump to a point in the file where the content has 
still not been loaded or buffered) through the use of the 'onmetadata' event 
(we had to cheat a bit on the mediastream object and subclass it to have the 
right support, I'll ask my dev to post the modified version.)

This feature works great with FLV container, but I, for now, have been unable 
to get it working properly and consistently across different browsers on other 
technologies (audio / video tag HTML5, other containers than FLV).

Have an excellent week-end,
Julien


----- Mail Original -----
De: "Raju Bitter" <[email protected]>
À: "Antun Karlovac" <[email protected]>
Cc: "julien lepine" <[email protected]>, "Yann" <[email protected]>, 
"laszlo-user list" <[email protected]>
Envoyé: Vendredi 19 Novembre 2010 13h22:23 GMT +01:00 Amsterdam / Berlin / 
Berne / Rome / Stockholm / Vienne
Objet: Re: [Laszlo-user] mediastream and MP3s

The disadvantage of the OpenLaszlo components is that it can be
difficult to use specific Flash functionality since the Flash objects
are "hidden" through the component implementation.

But check these examples:
http://www.actionscript.org/forums/showthread.php3?t=156066

Based on that it should be very easy to add MP3 playback for audios
that have not fully been downloaded.

- Raju

On Wed, Nov 10, 2010 at 9:32 PM, Antun Karlovac <[email protected]> wrote:
> My understanding is that view natively supports loading an MP3 and playing
> before it is fully loaded. It is not true "streaming". But you should be
> able to play an MP3 over HTTP without waiting for it to finish loading by
> doing:
>
> <view resource="http:path/to/mp3.mp3" ... />
>
> At least, that used to work.
>
> -Antun
>
> On 11/10/10 8:35 AM, [email protected] wrote:
>>
>> Hi Antun,
>>
>> We tried it with MP3 on our site, and it just does not seem to work.
>> To have mediastream (and the underlying AS NetConnection) working, we had
>> to switch our content to flv without video.
>> For MP3 we were stick with the AS Song element, not allowing streaming,
>> just waiting for the whole content to be loaded (whatever the configuration
>> made, our MP3 just didn't start before being completely loaded).
>>
>> If anyone has news about it, I'd gladly use a single mediastream object
>> for both flv and mp3 content, instead of switching between mediastream and
>> AS Song wrapper.
>>
>> Cheers,
>> Julien
>>
>>
>> ----- Mail Original -----
>> De: "Antun Karlovac"<[email protected]>
>> À: "laszlo-user list"<[email protected]>
>> Cc: "Yann"<[email protected]>
>> Envoyé: Mardi 9 Novembre 2010 02h02:08 GMT +01:00 Amsterdam / Berlin /
>> Berne / Rome / Stockholm / Vienne
>> Objet: [Laszlo-user] mediastream and MP3s
>>
>> Hi all,
>>
>> It seems like the mediastream class encapsulates a lot of useful
>> functionality for loading video content.
>>
>> Is there a reason it does not work with MP3 content that's served over
>> HTTP? Are there technical reasons why this could not work? Would it be
>> easy to make it support MP3 files served over HTTP?
>>
>> -Antun
>
>

Reply via email to