[Laszlo-dev] Recording Speex audio & Sorenson Spark "type 0" video
Max Carlson
max at openlaszlo.org
Mon Oct 19 17:34:10 PDT 2009
Yes, you'll have to compile with -runtime=swf10!
David Nault wrote:
> Thanks Max. Do you need to do anything special to get the Flash 10
> version of the Microphone class? Right now I'm using lzc (pagan-deities)
> with "-runtime=swf8" and the object returned by "_makeDevice" doesn't
> seem to have a "codec" property. Debug.write("codec:", dev.codec) prints
> "codec: undefined" and assigning the value "Speex" doesn't have the
> desired effect). Flash player 10,0,32,18.
>
> David
>
>
> On Oct 15, 2009, at 5:06 AM, Max Carlson wrote:
>
>> Wikipedia sez:
>> Because of some bugs in Flash Player, the first recommended version
>> for Speex support is 10.0.22.87 and later.
>>
>> See the docs here:
>> http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Microphone.html
>> and
>> http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/SoundCodec.html
>>
>> Your best bet would be overriding the _makeDevice() method of
>> av/microphone.lzx, e.g.:
>>
>> <microphone>
>> <method name="_makeDevice"><![CDATA[
>> var dev = super._makeDevice();
>> // dev is the microphone
>> dev.codec = 'Speex';
>> ]]>
>> </method>
>> </microphone>
>>
>> Even better, enhance the class with a codec attribute, so
>> _makeDevice() does this automatically - then contribute it back to the
>> platform! Please file an improvement request if you're not up to doing
>> that.
>>
>> Let me know how it goes!
>>
>> David Nault wrote:
>>> Hi,
>>> I'd like to use the OpenLaszlo to record Speex audio and Sorenson
>>> Spark "type 0" video (the defaults are Nellymoser Asao and "type 1",
>>> respectively). I tried poking around in extensions/av/microphone.lzx,
>>> but the object returned by Microphone.get() doesn't seem to have a
>>> "codec" property. Can someone kind media expert give me a push in the
>>> right direction?
>>> Thanks,
>>> David
>>
>> --
>> Regards,
>> Max Carlson
>> OpenLaszlo.org
>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list